Let logging format the notification message 44/107244/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 3 Aug 2023 17:52:47 +0000 (19:52 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Aug 2023 08:02:25 +0000 (10:02 +0200)
If logging is set above INFO, we should not be formatting the
notification.

Change-Id: Ib81678989814a4a2827a5706874f256d70318bf9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/tools/netconf-testtool/src/main/java/org/opendaylight/netconf/test/tool/client/stress/StressClient.java

index 359f1d6c65d869afdc5af0a7a5ea881514ec2ba5..c76596830916fa393e696da342fade14e2a7a114 100644 (file)
@@ -278,7 +278,7 @@ public final class StressClient {
 
         @Override
         public void onNotification(final NetconfMessage notification) {
-            LOG.info("Notification received: {}", notification.toString());
+            LOG.info("Notification received: {}", notification);
         }
     }
 }