Decrease log level in lisp readers (lisp disabled case) 51/6851/2
authorMarek Gradzki <[email protected]>
Wed, 24 May 2017 07:41:15 +0000 (09:41 +0200)
committerMarek Gradzki <[email protected]>
Wed, 24 May 2017 08:10:10 +0000 (10:10 +0200)
Change-Id: Ibf25ca7998b59d0d918277092e2d1e84e68cd923
Signed-off-by: Marek Gradzki <[email protected]>
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java
lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java

index 982d191..7be5651 100644 (file)
@@ -75,7 +75,7 @@ public class ItrRemoteLocatorSetCustomizer extends CheckedLispCustomizer
             throws ReadFailedException {
 
         if (!lispStateCheckService.lispEnabled(ctx)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return;
         }
 
index a295797..6e97c2c 100755 (executable)
@@ -73,7 +73,7 @@ public class LocatorSetCustomizer extends CheckedLispCustomizer
     public void readCurrentAttributes(InstanceIdentifier<LocatorSet> id, LocatorSetBuilder builder, ReadContext ctx)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(ctx)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return;
         }
         LOG.debug("Reading attributes for Locator Set {}", id);
@@ -106,7 +106,7 @@ public class LocatorSetCustomizer extends CheckedLispCustomizer
     public List<LocatorSetKey> getAllIds(InstanceIdentifier<LocatorSet> id, ReadContext context)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(context)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return Collections.emptyList();
         }
 
index 393a27e..12b376a 100644 (file)
@@ -60,7 +60,7 @@ public class MapRegisterCustomizer extends CheckedLispCustomizer
                                       @Nonnull MapRegisterBuilder mapRegisterBuilder,
                                       @Nonnull ReadContext readContext) throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(readContext)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
             return;
         }
 
index ae84015..0b04e4c 100644 (file)
@@ -59,7 +59,7 @@ public class MapRequestModeCustomizer extends CheckedLispCustomizer
                                       @Nonnull MapRequestModeBuilder mapRequestModeBuilder,
                                       @Nonnull ReadContext readContext) throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(readContext)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
             return;
         }
         final ShowOneMapRequestModeReply reply = getReplyForRead(
index b561440..41de383 100755 (executable)
@@ -80,7 +80,7 @@ public class MapResolverCustomizer extends CheckedLispCustomizer
     public void readCurrentAttributes(InstanceIdentifier<MapResolver> id, MapResolverBuilder builder, ReadContext ctx)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(ctx)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return;
         }
         LOG.debug("Reading attributes...");
@@ -115,7 +115,7 @@ public class MapResolverCustomizer extends CheckedLispCustomizer
     public List<MapResolverKey> getAllIds(InstanceIdentifier<MapResolver> id, ReadContext context)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(context)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return Collections.emptyList();
         }
         LOG.debug("Dumping MapResolver...");
index 26e193a..b1a60db 100644 (file)
@@ -90,7 +90,7 @@ public class MapServerCustomizer extends CheckedLispCustomizer
     public List<MapServerKey> getAllIds(@Nonnull InstanceIdentifier<MapServer> instanceIdentifier,
                                         @Nonnull ReadContext readContext) throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(readContext)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
             return Collections.emptyList();
         }
 
@@ -123,7 +123,7 @@ public class MapServerCustomizer extends CheckedLispCustomizer
                                       @Nonnull MapServerBuilder mapServerBuilder, @Nonnull ReadContext readContext)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(readContext)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
             return;
         }
         final Optional<OneMapServerDetailsReplyDump> dump =
index 4992f03..406332d 100644 (file)
@@ -68,7 +68,7 @@ public class PetrCfgCustomizer extends CheckedLispCustomizer
                                       @Nonnull PetrCfgBuilder petrCfgBuilder,
                                       @Nonnull ReadContext readContext) throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(readContext)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
             return;
         }
 
index da205da..3d382f6 100755 (executable)
@@ -65,7 +65,7 @@ public class PitrCfgCustomizer extends CheckedLispCustomizer
     public void readCurrentAttributes(InstanceIdentifier<PitrCfg> id, PitrCfgBuilder builder, ReadContext ctx)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(ctx)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return;
         }
         LOG.debug("Reading status for Lisp Pitr node {}", id);
index f369850..16cb14a 100644 (file)
@@ -60,7 +60,7 @@ public class RlocProbeCustomizer extends CheckedLispCustomizer
                                       @Nonnull RlocProbeBuilder rlocProbeBuilder,
                                       @Nonnull ReadContext readContext) throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(readContext)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", instanceIdentifier);
             return;
         }
 
index 28b5509..2247a73 100755 (executable)
@@ -93,7 +93,7 @@ public class VniTableCustomizer extends CheckedLispCustomizer
                                        @Nonnull final ReadContext context)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(context)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return Collections.emptyList();
         }
         LOG.trace("Reading all IDS...");
@@ -114,7 +114,7 @@ public class VniTableCustomizer extends CheckedLispCustomizer
                                       @Nonnull final VniTableBuilder builder, @Nonnull final ReadContext ctx)
             throws ReadFailedException {
         if (!lispStateCheckService.lispEnabled(ctx)) {
-            LOG.info("Lisp feature must be enabled first");
+            LOG.debug("Failed to read {}. Lisp feature must be enabled first", id);
             return;
         }