You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ro...@apache.org on 2022/10/03 14:12:11 UTC

[activemq-artemis] branch main updated: ARTEMIS-4026: correct connection-router related log statement value and/or level

This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new f465073744 ARTEMIS-4026: correct connection-router related log statement value and/or level
f465073744 is described below

commit f465073744df6b2eacb5b57b58530d478d46edf1
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon Oct 3 15:11:06 2022 +0100

    ARTEMIS-4026: correct connection-router related log statement value and/or level
---
 .../apache/activemq/artemis/core/server/routing/caches/LocalCache.java | 3 ++-
 .../artemis/core/server/routing/policies/LeastConnectionsPolicy.java   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/caches/LocalCache.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/caches/LocalCache.java
index 8dfcd59154..5c1bf323e2 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/caches/LocalCache.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/caches/LocalCache.java
@@ -76,7 +76,8 @@ public class LocalCache implements Cache, RemovalListener<String, String> {
          if (persistedCacheEntries != null) {
             for (Map.Entry<String, PersistedKeyValuePair> cacheEntry : persistedCacheEntries.entrySet()) {
                cache.put(cacheEntry.getKey(), cacheEntry.getValue().getValue());
-               logger.info(cacheEntry.toString());
+
+               logger.debug("Restored persisted cache entry during start: {}", cacheEntry);
             }
          }
       }
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java
index c770a7db96..d1385c4cf5 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java
@@ -59,7 +59,7 @@ public class LeastConnectionsPolicy extends RoundRobinPolicy {
 
                connectionCount = 0;
             } else if (logger.isDebugEnabled()) {
-               logger.debug("Updating the connection count to 0/" + connectionCount + " for the target " + target);
+               logger.debug("Updating the connection count to " + connectionCount + " for the target " + target);
             }
 
             connectionCountCache.put(target, connectionCount);