Skip to content

Commit 218ad1a

Browse files
author
xiangtao
committed
fix print msg error when msg is not RemotingCommand instance
1 parent 4219494 commit 218ad1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lts-core/src/main/java/com/github/ltsopensource/remoting/lts/LtsCodecFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public ByteBuffer encode(NioChannel channel, Object msg) {
4545
RemotingHelper.closeChannel(c);
4646
}
4747
} else {
48-
LOGGER.error("Message is instance of " + RemotingCommand.class.getName());
48+
LOGGER.error("Message is not instance of " + RemotingCommand.class.getName());
4949
}
5050
return null;
5151
}

0 commit comments

Comments
 (0)