Lower NotificationListenerAdapter 71/93871/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Nov 2020 09:51:26 +0000 (10:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Nov 2020 11:46:21 +0000 (12:46 +0100)
We do not want to flood logs here, drop the message to debug.

Change-Id: I7711beabe083ac2c75cd742d4423b1482a80d8a9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/listeners/NotificationListenerAdapter.java

index 9745083dc58907be22621d11dbbb89873c225943..60b3c333e61b2c6fdd6aa18b18872002e69b91e2 100644 (file)
@@ -57,10 +57,9 @@ public class NotificationListenerAdapter extends AbstractCommonSubscriber implem
         this.path = requireNonNull(path);
         this.streamName = requireNonNull(streamName);
         checkArgument(!streamName.isEmpty());
-
-        LOG.info("output type: {}, {}", outputType, this.outputType);
-
         this.formatter = getFormatterFactory().getFormatter();
+
+        LOG.debug("output type: {}, {}", outputType, this.outputType);
     }
 
     private NotificationFormatterFactory getFormatterFactory() {
@@ -70,7 +69,7 @@ public class NotificationListenerAdapter extends AbstractCommonSubscriber implem
             case XML:
                 return XMLNotificationFormatter.FACTORY;
             default:
-                throw new IllegalArgumentException(("Unsupported outputType" + outputType));
+                throw new IllegalArgumentException("Unsupported outputType " + outputType);
         }
     }
 
@@ -80,8 +79,8 @@ public class NotificationListenerAdapter extends AbstractCommonSubscriber implem
     }
 
     @Override
-    public void setQueryParams(Instant start, Instant stop, String filter, boolean leafNodesOnly,
-                               boolean skipNotificationData) {
+    public void setQueryParams(final Instant start, final Instant stop, final String filter,
+                               final boolean leafNodesOnly, final boolean skipNotificationData) {
         super.setQueryParams(start, stop, filter, leafNodesOnly, skipNotificationData);
         try {
             this.formatter = getFormatter(filter);