INT-2620 Fix Debug Log

New connection debug log should include this.getConnectionId() instead
of this.toString().

Noticed during backport to 2.2.x.
This commit is contained in:
Gary Russell
2013-06-11 16:40:58 +01:00
parent af35733b20
commit 14e556ce23

View File

@@ -25,6 +25,7 @@ import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.core.serializer.Deserializer;
import org.springframework.core.serializer.Serializer;
@@ -121,7 +122,7 @@ public abstract class TcpConnectionSupport implements TcpConnection {
}
this.publishConnectionOpenEvent();
if (logger.isDebugEnabled()) {
logger.debug("New connection " + this);
logger.debug("New connection " + this.getConnectionId());
}
}