Skip to content

Commit

Permalink
LockRegistryLeaderInitiator: Add DEBUG for errors
Browse files Browse the repository at this point in the history
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**
  • Loading branch information
artembilan authored and garyrussell committed Mar 21, 2018
1 parent 4f616e9 commit 12301f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ else if (acquired) {
}
return null;
}
else if (logger.isDebugEnabled()) {
logger.debug("Error acquiring the lock. " + (isRunning() ? "Retrying..." : ""), e);
}
}
}
}
Expand Down

0 comments on commit 12301f7

Please sign in to comment.