ARTEMIS-3209 add details to AMQ222186 WARN message

This commit is contained in:
Justin Bertram 2021-04-12 20:11:21 -05:00 committed by clebertsuconic
parent 3c90c695f3
commit 81e6e4a5a2
2 changed files with 6 additions and 3 deletions

View File

@ -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,

View File

@ -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);