Fix test class name and protect debug log message

This commit is contained in:
Rossen Stoyanchev
2014-07-10 15:55:27 -04:00
parent 670c216d38
commit f8e4547228
2 changed files with 8 additions and 14 deletions

View File

@@ -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;
}