You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2020/02/21 19:21:54 UTC
[qpid-jms] branch master updated: NO-JIRA: Fix logger to not box
value
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 <ta...@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-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org