Skip to content

Commit

Permalink
Review comment: full stack trace only for DEBUG log level
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo committed Jul 12, 2023
1 parent 594f951 commit cbb851d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ protected void processAsynchronously(@Nullable AudioStream audioStream)
try {
handler.playUrl(url);
} catch (SpeakerException e) {
logger.warn("Unable to play audio stream on speaker {}", getId(), e);
if (logger.isDebugEnabled()) {
logger.debug("Unable to play audio stream on speaker {}", getId(), e);
} else {
logger.warn("Unable to play audio stream on speaker {}: {}", getId(), e.getMessage());
}
}
}

Expand Down

0 comments on commit cbb851d

Please sign in to comment.