Skip to content

Commit

Permalink
Checked if debug is enabled before logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadmohammad committed Aug 17, 2024
1 parent add6b5a commit 2e45550
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ private void logError(Throwable throwable) {
}

private void logDebug(Throwable throwable) {
log.debug(throwable.getMessage(), throwable);
if (log.isDebugEnabled()) {
log.debug(throwable.getMessage(), throwable);
}
}

@ExceptionHandler(value = ParamValidationException.class)
Expand Down

0 comments on commit 2e45550

Please sign in to comment.