mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-29 10:50:33 +00:00
Fix test class name and protect debug log message
This commit is contained in:
+3
-1
@@ -147,7 +147,9 @@ public abstract class AbstractMessageChannel implements MessageChannel, BeanName
|
||||
message = interceptor.preSend(message, channel);
|
||||
if (message == null) {
|
||||
String name = interceptor.getClass().getSimpleName();
|
||||
logger.debug(name + " returned null from preSend, i.e. precluding the send.");
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(name + " returned null from preSend, i.e. precluding the send.");
|
||||
}
|
||||
triggerAfterSendCompletion(message, channel, false, null);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user