From 218ad1a3580497524cf28cf93275e71c8a766d1b Mon Sep 17 00:00:00 2001 From: xiangtao Date: Mon, 28 Nov 2016 21:01:23 +0800 Subject: [PATCH] fix print msg error when msg is not RemotingCommand instance --- .../com/github/ltsopensource/remoting/lts/LtsCodecFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lts-core/src/main/java/com/github/ltsopensource/remoting/lts/LtsCodecFactory.java b/lts-core/src/main/java/com/github/ltsopensource/remoting/lts/LtsCodecFactory.java index 891555b7d..1a0c27741 100644 --- a/lts-core/src/main/java/com/github/ltsopensource/remoting/lts/LtsCodecFactory.java +++ b/lts-core/src/main/java/com/github/ltsopensource/remoting/lts/LtsCodecFactory.java @@ -45,7 +45,7 @@ public ByteBuffer encode(NioChannel channel, Object msg) { RemotingHelper.closeChannel(c); } } else { - LOGGER.error("Message is instance of " + RemotingCommand.class.getName()); + LOGGER.error("Message is not instance of " + RemotingCommand.class.getName()); } return null; }