Skip to content

Commit f19f23f

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 a244164 commit f19f23f

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
@@ -400,6 +400,9 @@ else if (acquired) {
400400
}
401401
return null;
402402
}
403+
else if (logger.isDebugEnabled()) {
404+
logger.debug("Error acquiring the lock. " + (isRunning() ? "Retrying..." : ""), e);
405+
}
403406
}
404407
}
405408
}

0 commit comments

Comments
 (0)