Changed the use of string concatenation of String.format in favor of formatted logging methods

This commit is contained in:
andrea
2013-11-27 10:43:08 +01:00
parent 215b85c407
commit bd3a1f6c4d
9 changed files with 46 additions and 46 deletions
@@ -19,14 +19,14 @@ class PublishDecoder extends DemuxDecoder {
@Override
void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
LOG.info("decode invoked with buffer " + in);
LOG.info("decode invoked with buffer {}", in);
in.resetReaderIndex();
int startPos = in.readerIndex();
//Common decoding part
PublishMessage message = new PublishMessage();
if (!decodeCommonHeader(message, in)) {
LOG.info("decode ask for more data after " + in);
LOG.info("decode ask for more data after {}", in);
in.resetReaderIndex();
return;
}