Logging updated
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / TlsDetector.java
index 93b296d0f2461f514d7ac3851a21d77fe3f2e14d..75ce2cc87c7593e728c5e3ef6c772971bdf25ffe 100644 (file)
@@ -43,7 +43,7 @@ public class TlsDetector extends ByteToMessageDecoder {
      * Constructor of class
      */
     public TlsDetector() {
-        LOGGER.debug("Creating TLS Detector");
+        LOGGER.trace("Creating TLS Detector");
         detectSsl = true;
     }
 
@@ -56,7 +56,7 @@ public class TlsDetector extends ByteToMessageDecoder {
 
     private boolean isSsl(ByteBuf bb) {
         if (detectSsl) {
-            LOGGER.info("Testing connection for TLS");
+            LOGGER.trace("Testing connection for TLS");
             return SslHandler.isEncrypted(bb);
         }
         return false;
@@ -64,7 +64,7 @@ public class TlsDetector extends ByteToMessageDecoder {
 
     private static void enableSsl(ChannelHandlerContext ctx) {
         if (ctx.pipeline().get(COMPONENT_NAMES.SSL_HANDLER.name()) == null) {
-            LOGGER.info("Engaging TLS handler");
+            LOGGER.trace("Engaging TLS handler");
             ChannelPipeline p = ctx.channel().pipeline();
             SSLEngine engine = SslContextFactory.getServerContext()
                     .createSSLEngine();
@@ -84,14 +84,14 @@ public class TlsDetector extends ByteToMessageDecoder {
             LOGGER.debug(ByteBufUtils.byteBufToHexString(bb));
         }
         if (isSsl(bb)) {
-            LOGGER.info("Connection is encrypted");
+            LOGGER.debug("Connection is encrypted");
             enableSsl(ctx);
         } else {
-            LOGGER.info("Connection is not encrypted");
+            LOGGER.debug("Connection is not encrypted");
         }
         
         if (connectionFacade != null) {
-            LOGGER.debug("Firing onConnectionReady notification");
+            LOGGER.trace("Firing onConnectionReady notification");
             connectionFacade.fireConnectionReadyNotification();
         }