Skip to content

Commit

Permalink
[SDCISA-15833] Add logger guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed May 3, 2024
1 parent 9120074 commit dfad2c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ private <Ctx> void onOneDone(Request<Ctx> req, Throwable ex) {
// Unlock, to prevent thread stalls as we don't know for how long mentor
// is going to block.
req.lock.unlock();
log.debug("mentor.onError({}: {})", ex.getClass().getName(), ex.getMessage());
if (log.isDebugEnabled()) {
log.debug("mentor.onError({}: {})", ex.getClass().getName(), ex.getMessage());
}
isFatalError = req.mentor.onError(ex, req.ctx);
} finally {
req.lock.lock(); // Need our lock back.
Expand Down

0 comments on commit dfad2c4

Please sign in to comment.