From 6bf9fce186a7024e2686396dd2e01d9ed035670e Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Wed, 24 May 2017 09:41:15 +0200 Subject: Decrease log level in lisp readers (lisp disabled case) Change-Id: Ibf25ca7998b59d0d918277092e2d1e84e68cd923 Signed-off-by: Marek Gradzki --- .../fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java | 2 +- .../java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java | 4 ++-- .../java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java | 2 +- .../io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java | 2 +- .../java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java | 4 ++-- .../java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java | 4 ++-- .../main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java | 2 +- .../main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java | 2 +- .../java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java | 2 +- .../java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java | 4 ++-- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java index 982d191f6..7be565154 100644 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/ItrRemoteLocatorSetCustomizer.java @@ -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; } diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java index a2957972a..6e97c2c8c 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/LocatorSetCustomizer.java @@ -73,7 +73,7 @@ public class LocatorSetCustomizer extends CheckedLispCustomizer public void readCurrentAttributes(InstanceIdentifier 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 getAllIds(InstanceIdentifier 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(); } diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java index 393a27e68..12b376a1d 100644 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRegisterCustomizer.java @@ -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; } diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java index ae84015a2..0b04e4c8a 100644 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapRequestModeCustomizer.java @@ -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( diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java index b5614408e..41de38333 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapResolverCustomizer.java @@ -80,7 +80,7 @@ public class MapResolverCustomizer extends CheckedLispCustomizer public void readCurrentAttributes(InstanceIdentifier 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 getAllIds(InstanceIdentifier 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..."); diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java index 26e193a98..b1a60db39 100644 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/MapServerCustomizer.java @@ -90,7 +90,7 @@ public class MapServerCustomizer extends CheckedLispCustomizer public List getAllIds(@Nonnull InstanceIdentifier 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 dump = diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java index 4992f0370..406332d3f 100644 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PetrCfgCustomizer.java @@ -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; } diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java index da205da37..3d382f628 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/PitrCfgCustomizer.java @@ -65,7 +65,7 @@ public class PitrCfgCustomizer extends CheckedLispCustomizer public void readCurrentAttributes(InstanceIdentifier 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); diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java index f369850ff..16cb14a7c 100644 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/RlocProbeCustomizer.java @@ -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; } diff --git a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java index 28b5509ae..2247a73b9 100755 --- a/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java +++ b/lisp/lisp2vpp/src/main/java/io/fd/hc2vpp/lisp/translate/read/VniTableCustomizer.java @@ -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; } -- cgit 1.2.3-korg