Skip to content

Commit

Permalink
Merge pull request #1378, replace StringBuider with simple string con…
Browse files Browse the repository at this point in the history
…catenation in log.
  • Loading branch information
Ke Li authored and chickenlj committed Feb 24, 2018
1 parent 59ca32a commit fddedf6
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@ private void decode(Object message) {
try {
((Decodeable) message).decode();
if (log.isDebugEnabled()) {
log.debug(new StringBuilder(32).append("Decode decodeable message ")
.append(message.getClass().getName()).toString());
log.debug("Decode decodeable message " + message.getClass().getName());
}
} catch (Throwable e) {
if (log.isWarnEnabled()) {
log.warn(
new StringBuilder(32)
.append("Call Decodeable.decode failed: ")
.append(e.getMessage()).toString(),
e);
log.warn("Call Decodeable.decode failed: " + e.getMessage(), e);
}
} // ~ end of catch
} // ~ end of if
Expand Down

0 comments on commit fddedf6

Please sign in to comment.