Fix Logger use
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / serialization / factories / HelloInputMessageFactoryTest.java
index c383532467b166604323a8b20a5d5da3c99d04da..d947b3fdf068eb8e0c86f3fc2f128130ef14f33a 100644 (file)
@@ -84,7 +84,9 @@ public class HelloInputMessageFactoryTest {
 
         ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         helloFactory.serialize(message, out);
-        LOGGER.debug("bytebuf: " + ByteBufUtils.byteBufToHexString(out));
+        if (LOGGER.isDebugEnabled()) {
+            LOGGER.debug("bytebuf: {}", ByteBufUtils.byteBufToHexString(out));
+        }
 
         BufferHelper.checkHeaderV13(out, (byte) 0, 16);
         Elements element = readElement(out).get(0);
@@ -108,7 +110,9 @@ public class HelloInputMessageFactoryTest {
 
         ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();
         helloFactory.serialize(message, out);
-        LOGGER.debug("bytebuf: " + ByteBufUtils.byteBufToHexString(out));
+        if (LOGGER.isDebugEnabled()) {
+            LOGGER.debug("bytebuf: ", ByteBufUtils.byteBufToHexString(out));
+        }
 
         BufferHelper.checkHeaderV13(out, (byte) 0, 24);
         Elements element = readElement(out).get(0);
@@ -142,7 +146,7 @@ public class HelloInputMessageFactoryTest {
                 booleanList.add(false);
             }
         }
-        LOGGER.debug("boolsize " + booleanList.size());
+        LOGGER.debug("boolsize {}", booleanList.size());
         elementsBuilder.setType(HelloElementType.forValue(1));
         elementsBuilder.setVersionBitmap(booleanList);
         elementsList.add(elementsBuilder.build());