diff options
| author | Robert Gemmell <robbie@apache.org> | 2012-01-16 15:40:13 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2012-01-16 15:40:13 +0000 |
| commit | cedeb1eb580e6715f9948be55bdd327dc7bc579d (patch) | |
| tree | 308ecdaddf9916a90f8f6e3e68344b19207ca746 /java/broker | |
| parent | 8d0c54ea9ad53e34a0b31dc21f9b7579449e2b63 (diff) | |
| download | qpid-python-cedeb1eb580e6715f9948be55bdd327dc7bc579d.tar.gz | |
QPID-3761: rename the fallback config to ensure it isnt just picked up by Log4J automatically scanning the classpath
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1232031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker')
| -rw-r--r-- | java/broker/src/main/java/fallback-log4j.properties (renamed from java/broker/src/main/java/log4j.properties) | 4 | ||||
| -rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/Broker.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/java/broker/src/main/java/log4j.properties b/java/broker/src/main/java/fallback-log4j.properties index 6788c65463..7b95a89924 100644 --- a/java/broker/src/main/java/log4j.properties +++ b/java/broker/src/main/java/fallback-log4j.properties @@ -6,9 +6,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY diff --git a/java/broker/src/main/java/org/apache/qpid/server/Broker.java b/java/broker/src/main/java/org/apache/qpid/server/Broker.java index 1632effaf0..6a135d1196 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/Broker.java +++ b/java/broker/src/main/java/org/apache/qpid/server/Broker.java @@ -409,12 +409,12 @@ public class Broker else { System.err.println("Logging configuration error: unable to read file " + logConfigFile.getAbsolutePath()); - System.err.println("Using the fallback internal log4j.properties configuration"); + System.err.println("Using the fallback internal fallback-log4j.properties configuration"); - InputStream propsFile = this.getClass().getResourceAsStream("/log4j.properties"); + InputStream propsFile = this.getClass().getResourceAsStream("/fallback-log4j.properties"); if(propsFile == null) { - throw new IOException("Unable to load the fallback internal log4j.properties configuration file"); + throw new IOException("Unable to load the fallback internal fallback-log4j.properties configuration file"); } else { |
