From c5376789b021610426b56a8f84580dadec08f027 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Sun, 8 Sep 2019 10:05:12 -0500 Subject: [PATCH] ARTEMIS-2475 log metrics plugin init details --- .../artemis/core/deployers/impl/FileConfigurationParser.java | 1 + .../activemq/artemis/core/server/ActiveMQServerLogger.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java index 70fe47c913..bd095e0c29 100644 --- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java +++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/deployers/impl/FileConfigurationParser.java @@ -793,6 +793,7 @@ public final class FileConfigurationParser extends XMLConfigurationUtil { } }); + ActiveMQServerLogger.LOGGER.initializingMetricsPlugin(clazz, properties.toString()); config.setMetricsPlugin(metricsPlugin.init(properties)); return metricsPlugin; 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 8954839a07..8f760148d9 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 @@ -434,6 +434,10 @@ public interface ActiveMQServerLogger extends BasicLogger { @Message(id = 221081, value = "There is no address with ID {0}, deleting record {1}", format = Message.Format.MESSAGE_FORMAT) void infoNoAddressWithID(Long id, Long record); + @LogMessage(level = Logger.Level.INFO) + @Message(id = 221082, value = "Initializing metrics plugin {0} with properties: {1}", format = Message.Format.MESSAGE_FORMAT) + void initializingMetricsPlugin(String clazz, String properties); + @LogMessage(level = Logger.Level.WARN) @Message(id = 222000, value = "ActiveMQServer is being finalized and has not been stopped. Please remember to stop the server before letting it go out of scope", format = Message.Format.MESSAGE_FORMAT)