Skip to content

Commit e1d9f67

Browse files
authored
Merge pull request #320 from xiangtao/master
fix print msg error when msg is not RemotingCommand instance
2 parents 8536d16 + 218ad1a commit e1d9f67

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)