提交 04f93785 编写于 作者: D ding.lid

Print数组使用Arrays.toString

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@75 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 7c7d9b6c
......@@ -92,7 +92,7 @@ public class TelnetCodec extends TransportCodec {
if (message[message.length - 1] == '\b') { // Windows backspace echo
try {
boolean doublechar = message.length > 2 && message[message.length - 3] < 0; // double byte char
boolean doublechar = message.length >= 3 && message[message.length - 3] < 0; // double byte char
channel.send(new String(doublechar ? new byte[] {32, 32, 8, 8} : new byte[] {32, 8}, getCharset(channel).name()));
} catch (RemotingException e) {
throw new IOException(StringUtils.toString(e));
......@@ -103,7 +103,7 @@ public class TelnetCodec extends TransportCodec {
for (Object command : EXIT) {
if (isEquals(message, (byte[]) command)) {
if (logger.isInfoEnabled()) {
logger.info(new Exception("Close channel " + channel + " on exit command " + command));
logger.info(new Exception("Close channel " + channel + " on exit command: " + Arrays.toString((byte[])command)));
}
channel.close();
return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册