Skip to content

Commit 5919613

Browse files
artembilangaryrussell
authored andcommitted
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**
1 parent c45f9a6 commit 5919613

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-integration-core/src/main/java/org/springframework/integration/support/leader/LockRegistryLeaderInitiator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ else if (acquired) {
367367
}
368368
return null;
369369
}
370+
else if (logger.isDebugEnabled()) {
371+
logger.debug("Error acquiring the lock. " + (isRunning() ? "Retrying..." : ""), e);
372+
}
370373
}
371374
}
372375
}

0 commit comments

Comments
 (0)