Skip to content

Commit

Permalink
Fix logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalluck committed Aug 28, 2024
1 parent 96d9bab commit 37d7fb6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ public Response analyze(AnalyzePayload analyzePayload) throws URISyntaxException
LOGGER.debug("Analysis finished successfully. Analysis results: {}", analysisReport);
} catch (CancellationException ce) {
// The task was cancelled => don't send results using callback
LOGGER.info("Analysis with ID {} was cancelled. No callback will be performed. Exception: {}", id, ce);
LOGGER.info(
"Analysis with ID {} was cancelled. No callback will be performed. Exception: {}",
id,
ce.toString());
} catch (Throwable e) {
analysisReport = new AnalysisReport();
LOGGER.warn(
Expand Down Expand Up @@ -174,7 +177,7 @@ private boolean performCallback(org.jboss.pnc.api.dto.Request callback, Analysis
httpClient.performHttpRequest(callback, result);
return true;
} catch (Exception e) {
LOGGER.warn("Exception when performing Callback with: " + e.toString());
LOGGER.warn("Exception when performing Callback with: {}", e.toString());
LOGGER.warn("Retrying");
try {
httpClient.performHttpRequest(callback, result);
Expand Down

0 comments on commit 37d7fb6

Please sign in to comment.