From 885b42696c24d1e92d04b75a74ec9907c4b5b277 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Sun, 9 Nov 2014 09:48:50 +0000 Subject: QPID-6219: [Java Broker] Fix failing BrokerLoggingTest introduced by my previous commit (rev 1637549) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1637645 13f79535-47bb-0310-9956-ffa450edef68 --- .../broker-core/src/main/java/org/apache/qpid/server/Broker.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'qpid/java') diff --git a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/Broker.java b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/Broker.java index 44ed6d4d4c..245edc0970 100644 --- a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/Broker.java +++ b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/Broker.java @@ -143,6 +143,11 @@ public class Broker implements BrokerShutdownProvider private void startupImpl(final BrokerOptions options) throws Exception { + String storeLocation = options.getConfigurationStoreLocation(); + String storeType = options.getConfigurationStoreType(); + + _eventLogger.message(BrokerMessages.CONFIG(storeLocation)); + //Allow skipping the logging configuration for people who are //embedding the broker and want to configure it themselves. if(!options.isSkipLoggingConfiguration()) @@ -150,8 +155,6 @@ public class Broker implements BrokerShutdownProvider configureLogging(new File(options.getLogConfigFileLocation()), options.getLogWatchFrequency()); } - String storeLocation = options.getConfigurationStoreLocation(); - String storeType = options.getConfigurationStoreType(); PluggableFactoryLoader configFactoryLoader = new PluggableFactoryLoader<>(SystemConfigFactory.class); SystemConfigFactory configFactory = configFactoryLoader.get(storeType); @@ -161,7 +164,6 @@ public class Broker implements BrokerShutdownProvider throw new IllegalArgumentException("Unknown config store type '"+storeType+"', only the following types are supported: " + configFactoryLoader.getSupportedTypes()); } - _eventLogger.message(BrokerMessages.CONFIG(storeLocation)); LogRecorder logRecorder = new LogRecorder(); -- cgit v1.2.1