Minor change, condensed debug logging

This commit is contained in:
andrea
2013-12-26 11:45:52 +01:00
parent a020d83c8a
commit 42311b2c54
@@ -71,17 +71,16 @@ public class SubscriptionsStore {
//reload any subscriptions persisted //reload any subscriptions persisted
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
LOG.debug("subscription tree before {}", dumpTree()); LOG.debug("Reloading all stored subscriptions...subscription tree before {}", dumpTree());
} }
LOG.debug("Reloading all stored subscriptions...");
for (Subscription subscription : m_storageService.retrieveAllSubscriptions()) { for (Subscription subscription : m_storageService.retrieveAllSubscriptions()) {
LOG.debug("Re-subscribing {} to topic {}", subscription.getClientId(), subscription.getTopic()); LOG.debug("Re-subscribing {} to topic {}", subscription.getClientId(), subscription.getTopic());
addDirect(subscription); addDirect(subscription);
} }
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
LOG.debug("subscription tree after {}", dumpTree()); LOG.debug("Finished loading. Subscription tree after {}", dumpTree());
} }
LOG.debug("Finished loading");
} }
protected void addDirect(Subscription newSubscription) { protected void addDirect(Subscription newSubscription) {