Skip to content

Commit

Permalink
Fix the response body processor timeout message (#267)
Browse files Browse the repository at this point in the history
* Fix the response body processor timeout message
  • Loading branch information
nck-mlcnv authored Aug 16, 2024
1 parent 2d495e5 commit cecf726
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public List<LanguageProcessor.LanguageProcessingData> getResponseDataMetrics() {
return responseDataMetrics;
}

LOGGER.info(MessageFormat.format("Shutting down ResponseBodyProcessor with {0} min timeout to finish processing. {1} tasks remaining.", timeout.toMinutes() + "." + (timeout.toSecondsPart() / (double) 60), executor.getQueue().size()));
LOGGER.info(MessageFormat.format("Shutting down ResponseBodyProcessor with {0}min {1}s timeout to finish processing. {2} tasks remaining.",
timeout.toMinutes(),
String.format("%02d", timeout.toSecondsPart()),
executor.getQueue().size()));
boolean noTimeout;
try {
executor.shutdown();
Expand Down

0 comments on commit cecf726

Please sign in to comment.