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

clebertsuconic 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 81e6e4a  ARTEMIS-3209 add details to AMQ222186 WARN message
81e6e4a is described below

commit 81e6e4a5a225f48183a9de4492705149cc14b526
Author: Justin Bertram <[email protected]>
AuthorDate: Mon Apr 12 20:11:21 2021 -0500

    ARTEMIS-3209 add details to AMQ222186 WARN message
---
 .../apache/activemq/artemis/core/server/ActiveMQServerLogger.java    | 4 ++--
 .../artemis/core/server/cluster/impl/ClusterConnectionImpl.java      | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java
 
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java
index ea2d2c8..c754c19 100644
--- 
a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java
+++ 
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQServerLogger.java
@@ -1225,9 +1225,9 @@ public interface ActiveMQServerLogger extends BasicLogger 
{
 
    @LogMessage(level = Logger.Level.WARN)
    @Message(id = 222186,
-      value = "unable to authorise cluster control",
+      value = "unable to authorise cluster control: {0}",
       format = Message.Format.MESSAGE_FORMAT)
-   void clusterControlAuthfailure();
+   void clusterControlAuthfailure(String causeMessage);
 
    @LogMessage(level = Logger.Level.WARN)
    @Message(id = 222187,
diff --git 
a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
 
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
index 4225129..42bd1e7 100644
--- 
a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
+++ 
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java
@@ -563,7 +563,10 @@ public final class ClusterConnectionImpl implements 
ClusterConnection, AfterConn
             clusterControl.authorize();
             clusterControl.sendNodeAnnounce(localMember.getUniqueEventID(), 
manager.getNodeId(), manager.getBackupGroupName(), 
manager.getScaleDownGroupName(), false, localMember.getLive(), 
localMember.getBackup());
          } catch (ActiveMQException e) {
-            ActiveMQServerLogger.LOGGER.clusterControlAuthfailure();
+            
ActiveMQServerLogger.LOGGER.clusterControlAuthfailure(e.getMessage());
+            if (logger.isDebugEnabled()) {
+               logger.debug(e);
+            }
          }
       } else {
          ActiveMQServerLogger.LOGGER.noLocalMemborOnClusterConnection(this);

Reply via email to