LockRegistryLeaderInitiator: Add DEBUG for errors

For better traceability for errors during lock acquiring add DEBUG
logging message in the `catch` block before returning back to the main
loop for the next acquiring attempt

**Cherry-pick to 5.0.x and 4.3.x**
This commit is contained in:
Artem Bilan
2018-03-20 17:13:33 -04:00
committed by Gary Russell
parent c45f9a6544
commit 5919613b3c

View File

@@ -367,6 +367,9 @@ public class LockRegistryLeaderInitiator implements SmartLifecycle, DisposableBe
}
return null;
}
else if (logger.isDebugEnabled()) {
logger.debug("Error acquiring the lock. " + (isRunning() ? "Retrying..." : ""), e);
}
}
}
}