You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2019/01/21 20:21:24 UTC
[activemq-artemis] branch master updated: ARTEMIS-2234 fix warning
from LoggingConfigurationFileReloader
This is an automated email from the ASF dual-hosted git repository.
jbertram 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 8b272bd ARTEMIS-2234 fix warning from LoggingConfigurationFileReloader
new c0252c7 This closes #2511
8b272bd is described below
commit 8b272bd1c89b24cc15d22fe55df5d3490b868660
Author: Emmanuel Hugonnet <em...@gmail.com>
AuthorDate: Mon Jan 21 18:16:09 2019 +0100
ARTEMIS-2234 fix warning from LoggingConfigurationFileReloader
return the LogContextConfiguration if we have one
---
.../activemq/artemis/core/server/LoggingConfigurationFileReloader.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/LoggingConfigurationFileReloader.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/LoggingConfigurationFileReloader.java
index 26fdf29..b96c24c 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/LoggingConfigurationFileReloader.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/LoggingConfigurationFileReloader.java
@@ -81,6 +81,9 @@ public class LoggingConfigurationFileReloader implements ReloadCallback {
if (configurator instanceof PropertyConfigurator) {
return ((PropertyConfigurator) configurator).getLogContextConfiguration();
}
+ if (configurator instanceof LogContextConfiguration) {
+ return (LogContextConfiguration) configurator;
+ }
return null;
}
}
\ No newline at end of file