You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2019/09/11 00:05:35 UTC

[activemq-artemis] branch master updated: ARTEMIS-2475 log metrics plugin init details

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c537678  ARTEMIS-2475 log metrics plugin init details
     new 485043c  This closes #2829
c537678 is described below

commit c5376789b021610426b56a8f84580dadec08f027
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Sun Sep 8 10:05:12 2019 -0500

    ARTEMIS-2475 log metrics plugin init details
---
 .../activemq/artemis/core/deployers/impl/FileConfigurationParser.java | 1 +
 .../org/apache/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 70fe47c..bd095e0 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 8954839..8f76014 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)