From f3ab13d054a29fd59da14b1a5ef6af4fed024fc9 Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Tue, 14 Mar 2023 17:34:19 +0530 Subject: Change log levels to reduce the amount of logs generated log level changed from INFO to DEBUG Issue-ID: CCSDK-3867 Signed-off-by: Ravi Pendurty Change-Id: I1a9d4890d92da444694b253c4b72f10862472953 Signed-off-by: Ravi Pendurty --- .../impl/MountpointNodeStateListenerImpl.java | 6 +++--- .../impl/MountpointStateVESMessageFormatter.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sdnr/wt/mountpoint-state-provider') diff --git a/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointNodeStateListenerImpl.java b/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointNodeStateListenerImpl.java index ea5232d59..1f8cee10d 100644 --- a/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointNodeStateListenerImpl.java +++ b/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointNodeStateListenerImpl.java @@ -49,7 +49,7 @@ public class MountpointNodeStateListenerImpl implements NetconfNodeStateListener public void onCreated(NodeId nNodeId, NetconfNode netconfNode) { Ipv4Address ipv4Address = netconfNode.getHost().getIpAddress().getIpv4Address(); Ipv6Address ipv6Address = netconfNode.getHost().getIpAddress().getIpv6Address(); - LOG.info("In onCreated of MountpointNodeStateListenerImpl - nNodeId = {}, IP Address = {}",nNodeId.getValue(), + LOG.debug("In onCreated of MountpointNodeStateListenerImpl - nNodeId = {}, IP Address = {}",nNodeId.getValue(), ipv4Address != null?ipv4Address.getValue():ipv6Address.getValue()); JSONObject obj = new JSONObject(); obj.put(Constants.NODEID, nNodeId.getValue()); @@ -63,7 +63,7 @@ public class MountpointNodeStateListenerImpl implements NetconfNodeStateListener public void onStateChange(NodeId nNodeId, NetconfNode netconfNode) { Ipv4Address ipv4Address = netconfNode.getHost().getIpAddress().getIpv4Address(); Ipv6Address ipv6Address = netconfNode.getHost().getIpAddress().getIpv6Address(); - LOG.info("In onStateChange of MountpointNodeStateListenerImpl - nNodeId = {}, IP Address = {}",nNodeId.getValue(), + LOG.debug("In onStateChange of MountpointNodeStateListenerImpl - nNodeId = {}, IP Address = {}",nNodeId.getValue(), ipv4Address != null?ipv4Address.getValue():ipv6Address.getValue()); JSONObject obj = new JSONObject(); obj.put(Constants.NODEID, nNodeId.getValue()); @@ -76,7 +76,7 @@ public class MountpointNodeStateListenerImpl implements NetconfNodeStateListener @Override public void onRemoved(NodeId nNodeId) { - LOG.info("In onRemoved of MountpointNodeStateListenerImpl - nNodeId = {}",nNodeId); + LOG.debug("In onRemoved of MountpointNodeStateListenerImpl - nNodeId = {}",nNodeId); JSONObject obj = new JSONObject(); obj.put(Constants.NODEID, nNodeId.getValue()); obj.put(Constants.NETCONFNODESTATE, "Removed"); diff --git a/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointStateVESMessageFormatter.java b/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointStateVESMessageFormatter.java index 01a8d49ff..ad5198f2f 100644 --- a/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointStateVESMessageFormatter.java +++ b/sdnr/wt/mountpoint-state-provider/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/impl/MountpointStateVESMessageFormatter.java @@ -66,7 +66,7 @@ public class MountpointStateVESMessageFormatter { VESMessage vesMsg = null; try { vesMsg = vesCollectorService.generateVESEvent(vesCommonEventHeader, vesNotificationFields); - LOG.info("VES Message is - {}", vesMsg.getMessage()); + LOG.debug("VES Message is - {}", vesMsg.getMessage()); } catch (JsonProcessingException e) { LOG.error("Exception while generating VES Event - ", e); } -- cgit 1.2.3-korg