From 6d36c490e5ddaeed92632dbb4f3ca8773a8a5bfa Mon Sep 17 00:00:00 2001 From: Daniel Trebbien Date: Fri, 28 Jul 2017 19:47:35 -0700 Subject: [PATCH] Fix inconsistent 'info'-level logger calls Some calls to info() were guarded by checks that logging at the trace level is enabled. These issues were found by SLF4J Helper for NetBeans IDE: http://plugins.netbeans.org/plugin/72557/ --- .../store/kahadb/MultiKahaDBPersistenceAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java index fcf6ba2f51..4e1f0c50ab 100644 --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java @@ -198,7 +198,7 @@ public class MultiKahaDBPersistenceAdapter extends LockableServiceSupport implem if (filteredAdapter.getDestination() == matchAll && filteredAdapter.isPerDestination()) { filteredAdapter = addAdapter(filteredAdapter, destination); if (LOG.isTraceEnabled()) { - LOG.info("created per destination adapter for: " + destination + ", " + result); + LOG.trace("created per destination adapter for: " + destination + ", " + result); } } startAdapter(filteredAdapter.getPersistenceAdapter(), destination.getQualifiedName()); @@ -330,11 +330,11 @@ public class MultiKahaDBPersistenceAdapter extends LockableServiceSupport implem if (adapterDir != null) { if (IOHelper.deleteFile(adapterDir)) { if (LOG.isTraceEnabled()) { - LOG.info("deleted per destination adapter directory for: " + destination); + LOG.trace("deleted per destination adapter directory for: " + destination); } } else { if (LOG.isTraceEnabled()) { - LOG.info("failed to deleted per destination adapter directory for: " + destination); + LOG.trace("failed to deleted per destination adapter directory for: " + destination); } } }