Add logPrefix to the log statement

Add logPrefix to the log statement to provide better debugging experience
This commit is contained in:
Violeta Georgieva
2020-08-26 16:34:08 +03:00
committed by Rossen Stoyanchev
parent f4f1abb27a
commit 1fe2ea5a87

View File

@@ -158,7 +158,7 @@ public abstract class HandlerResultHandlerSupport implements Ordered {
if (selected != null) {
selected = selected.removeQualityValue();
if (logger.isDebugEnabled()) {
logger.debug("Using '" + selected + "' given " + acceptableTypes +
logger.debug(exchange.getLogPrefix() + "Using '" + selected + "' given " + acceptableTypes +
" and supported " + producibleTypes);
}
}