From 732d7db4cad1d18b83c6361d31e914bf32463646 Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Mon, 2 Jan 2017 10:34:46 +0530 Subject: [PATCH] Bug 7450 : suppressing unnecessary warning logs * check to remove unncessary alivenessmonitor warn logs while packet in handling Change-Id: Ie592618dbf2b1db6d1891b111b14db04c01272eb Signed-off-by: Periyasamy Palanisamy --- .../alivenessmonitor/internal/AlivenessMonitor.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/alivenessmonitor/alivenessmonitor-impl/src/main/java/org/opendaylight/genius/alivenessmonitor/internal/AlivenessMonitor.java b/alivenessmonitor/alivenessmonitor-impl/src/main/java/org/opendaylight/genius/alivenessmonitor/internal/AlivenessMonitor.java index 5f507d2a9..aca5ba9e9 100644 --- a/alivenessmonitor/alivenessmonitor-impl/src/main/java/org/opendaylight/genius/alivenessmonitor/internal/AlivenessMonitor.java +++ b/alivenessmonitor/alivenessmonitor-impl/src/main/java/org/opendaylight/genius/alivenessmonitor/internal/AlivenessMonitor.java @@ -410,8 +410,10 @@ public class AlivenessMonitor implements AlivenessMonitorService, PacketProcessi releaseLock(lock); if (stateChanged) { //send notifications - LOG.info("Sending notification for monitor Id : {} with Current State: {}", - currentState.getMonitorId(), LivenessState.Up); + if (LOG.isTraceEnabled()) { + LOG.trace("Sending notification for monitor Id : {} with Current State: {}", + currentState.getMonitorId(), LivenessState.Up); + } publishNotification(currentState.getMonitorId(), LivenessState.Up); } else { if (LOG.isTraceEnabled()) { @@ -430,7 +432,10 @@ public class AlivenessMonitor implements AlivenessMonitorService, PacketProcessi } }); } else { - LOG.warn("Monitoring State not available for key: {} to process the Packet received", monitorKey); + if (LOG.isTraceEnabled()) { + LOG.trace("Monitoring State not available for key: {} to process the Packet received", + monitorKey); + } //Complete the transaction tx.submit(); releaseLock(lock); -- 2.36.6