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:
committed by
Gary Russell
parent
c45f9a6544
commit
5919613b3c
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user