From ed5533ecb6ebbde13d7d9cf13a0d72eb190ee8c8 Mon Sep 17 00:00:00 2001 From: Jeff Mesnil Date: Thu, 7 Apr 2016 10:16:38 +0200 Subject: [PATCH] [ARTEMIS-472] add cause to AMQ222137 warning JIRA: https://issues.apache.org/jira/browse/ARTEMIS-472 --- .../activemq/artemis/core/server/ActiveMQServerLogger.java | 2 +- .../activemq/artemis/core/server/cluster/BackupManager.java | 2 +- 2 files changed, 2 insertions(+), 2 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 55f7268b59..6679008011 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 @@ -886,7 +886,7 @@ public interface ActiveMQServerLogger extends BasicLogger { @LogMessage(level = Logger.Level.WARN) @Message(id = 222137, value = "Unable to announce backup, retrying", format = Message.Format.MESSAGE_FORMAT) - void errorAnnouncingBackup(); + void errorAnnouncingBackup(@Cause Throwable e); @LogMessage(level = Logger.Level.WARN) @Message(id = 222138, value = "Local Member is not set at on ClusterConnection {0}", format = Message.Format.MESSAGE_FORMAT) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/BackupManager.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/BackupManager.java index cbb4141d76..ed7f641891 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/BackupManager.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/BackupManager.java @@ -259,7 +259,7 @@ public class BackupManager implements ActiveMQComponent { return; if (stopping) return; - ActiveMQServerLogger.LOGGER.errorAnnouncingBackup(); + ActiveMQServerLogger.LOGGER.errorAnnouncingBackup(e); scheduledExecutor.schedule(new Runnable() { @Override