Skip to content

Commit d93c8d8

Browse files
committed
Prevent logging when no reply is provided for an AbstractReplyProducingMessageHandler if logging is disabled
1 parent dd7dd09 commit d93c8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-integration-core/src/main/java/org/springframework/integration/handler/AbstractReplyProducingMessageHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ else if (this.requiresReply && !isAsync()) {
155155
throw new ReplyRequiredException(message, "No reply produced by handler '" +
156156
getComponentName() + "', and its 'requiresReply' property is set to true.");
157157
}
158-
else if (!isAsync()) {
158+
else if (!isAsync() && isLoggingEnabled()) {
159159
logger.debug(LogMessage.format("handler '%s' produced no reply for request Message: %s", this, message));
160160
}
161161
}

0 commit comments

Comments
 (0)