mirror of https://github.com/apache/activemq.git
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/
This commit is contained in:
parent
210f583cbd
commit
6d36c490e5
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue