From ce283cf9d0da2ecde5c37fbf32ee151b33d1ac74 Mon Sep 17 00:00:00 2001 From: David Suarez Date: Tue, 30 May 2017 21:11:21 +0200 Subject: [PATCH] Replace logger and log by LOG Replace logger and log by LOG to follow the OpenDaylight recommendations [1]. [1] https://wiki.opendaylight.org/view/BestPractices/Logging_Best_Practices Change-Id: I63787ccee5950bebbc8c3769885574593a666809 Signed-off-by: David Suarez --- .../org/opendaylight/protocol/framework/Session.java | 10 +++++----- .../protocol/framework/SimpleDispatcher.java | 4 ++-- .../protocol/framework/SimpleSessionListener.java | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/test/java/org/opendaylight/protocol/framework/Session.java b/src/test/java/org/opendaylight/protocol/framework/Session.java index 22ad930656..b1defd25cb 100644 --- a/src/test/java/org/opendaylight/protocol/framework/Session.java +++ b/src/test/java/org/opendaylight/protocol/framework/Session.java @@ -16,7 +16,7 @@ import com.google.common.collect.Lists; public class Session extends AbstractProtocolSession { - private static final Logger logger = LoggerFactory.getLogger(Session.class); + private static final Logger LOG = LoggerFactory.getLogger(Session.class); public final List msgs = Lists.newArrayList(); @@ -29,19 +29,19 @@ public class Session extends AbstractProtocolSession { @Override public void handleMessage(final SimpleMessage msg) { - logger.debug("Message received: {}", msg.getMessage()); + LOG.debug("Message received: {}", msg.getMessage()); this.up = true; this.msgs.add(msg); - logger.debug(this.msgs.size() + ""); + LOG.debug(this.msgs.size() + ""); } @Override public void endOfInput() { - logger.debug("End of input reported."); + LOG.debug("End of input reported."); } @Override protected void sessionUp() { - logger.debug("Session up reported."); + LOG.debug("Session up reported."); } } diff --git a/src/test/java/org/opendaylight/protocol/framework/SimpleDispatcher.java b/src/test/java/org/opendaylight/protocol/framework/SimpleDispatcher.java index d83738520c..314fd42c7d 100644 --- a/src/test/java/org/opendaylight/protocol/framework/SimpleDispatcher.java +++ b/src/test/java/org/opendaylight/protocol/framework/SimpleDispatcher.java @@ -22,7 +22,7 @@ import org.slf4j.LoggerFactory; import com.google.common.base.Preconditions; public class SimpleDispatcher extends AbstractDispatcher { - private static final Logger logger = LoggerFactory.getLogger(SimpleDispatcher.class); + private static final Logger LOG = LoggerFactory.getLogger(SimpleDispatcher.class); private final SessionNegotiatorFactory negotiatorFactory; private final ChannelOutboundHandler encoder = new SimpleMessageToByteEncoder(); @@ -39,7 +39,7 @@ public class SimpleDispatcher extends AbstractDispatcher { - private static final Logger logger = LoggerFactory.getLogger(SimpleSessionListener.class); + private static final Logger LOG = LoggerFactory.getLogger(SimpleSessionListener.class); public List messages = new ArrayList<>(); @@ -27,7 +27,7 @@ public class SimpleSessionListener implements SessionListener