Skip to content

Commit 992b126

Browse files
author
Steve Powell
committed
Trace command body bytes as UTF-8 String:
- added conversion to toString(boolean) of AMQCommand
1 parent 134be12 commit 992b126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/rabbitmq/client/impl/AMQCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private static StringBuilder contentBodyStringBuilder(byte[] body, boolean suppr
146146
if (suppressBody) {
147147
return new StringBuilder().append(body.length).append(" bytes of payload");
148148
} else {
149-
return new StringBuilder().append('\"').append(body).append('\"');
149+
return new StringBuilder().append('\"').append(new String(body, "UTF-8")).append('\"');
150150
}
151151
} catch (Exception e) {
152152
return new StringBuilder().append('|').append(body.length).append('|');

0 commit comments

Comments
 (0)