This is an automated email from the ASF dual-hosted git repository. tabish pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-jms.git
The following commit(s) were added to refs/heads/master by this push: new b37fed5 NO-JIRA: Fix logger to not box value b37fed5 is described below commit b37fed5df3a0008921207565a2092771755a5143 Author: Timothy Bish <tabish...@gmail.com> AuthorDate: Fri Feb 21 14:11:45 2020 -0500 NO-JIRA: Fix logger to not box value Pass the buffer object itself as the toString would provide the data if logger is enabled --- .../java/org/apache/qpid/jms/transports/netty/NettyTcpTransport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/netty/NettyTcpTransport.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/netty/NettyTcpTransport.java index 38d7465..10b5a39 100644 --- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/netty/NettyTcpTransport.java +++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/netty/NettyTcpTransport.java @@ -256,14 +256,14 @@ public class NettyTcpTransport implements Transport { @Override public void write(ByteBuf output) throws IOException { checkConnected(output); - LOG.trace("Attempted write of: {} bytes", output.readableBytes()); + LOG.trace("Attempted write of buffer: {}", output); channel.write(output, channel.voidPromise()); } @Override public void writeAndFlush(ByteBuf output) throws IOException { checkConnected(output); - LOG.trace("Attempted write and flush of: {} bytes", output.readableBytes()); + LOG.trace("Attempted write and flush of buffer: {}", output); channel.writeAndFlush(output, channel.voidPromise()); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org