Skip to content

Commit 927ba8f

Browse files
committed
Revert LogAccessor API in TcpReceivChannelAdapter
1 parent 21b695d commit 927ba8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-integration-ip/src/main/java/org/springframework/integration/ip/tcp/TcpReceivingChannelAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public boolean onMessage(Message<?> message) {
7272
boolean isErrorMessage = message instanceof ErrorMessage;
7373
try {
7474
if (this.shuttingDown) {
75-
logger.info(() -> "Inbound message ignored; shutting down; " + message.toString());
75+
if (logger.isInfoEnabled()) {
76+
logger.info("Inbound message ignored; shutting down; " + message.toString());
77+
}
7678
}
7779
else {
7880
if (isErrorMessage) {

0 commit comments

Comments
 (0)