Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2010-09-02 08:04:41 -0400
committerGlyn Normington2010-09-02 08:04:41 -0400
commitd734d80a27ae39bb35318a60fa15d1be235a9771 (patch)
tree2341264483184d94c55bf33e4031d8ad8cefcdd3 /org.eclipse.virgo.medic.core
parenta62af6a4832b7e5a0dc7c4f176e840678542f750 (diff)
downloadorg.eclipse.virgo.medic-d734d80a27ae39bb35318a60fa15d1be235a9771.tar.gz
org.eclipse.virgo.medic-d734d80a27ae39bb35318a60fa15d1be235a9771.tar.xz
org.eclipse.virgo.medic-d734d80a27ae39bb35318a60fa15d1be235a9771.zip
bug 323609: avoid duplicating the default logging context unnecessarily
Diffstat (limited to 'org.eclipse.virgo.medic.core')
-rw-r--r--org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/log/impl/logback/StandardContextSelectorDelegate.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/log/impl/logback/StandardContextSelectorDelegate.java b/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/log/impl/logback/StandardContextSelectorDelegate.java
index e7992d5..fc159b8 100644
--- a/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/log/impl/logback/StandardContextSelectorDelegate.java
+++ b/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/log/impl/logback/StandardContextSelectorDelegate.java
@@ -131,6 +131,11 @@ public class StandardContextSelectorDelegate implements ContextSelectorDelegate,
defaultContext.reset();
try {
this.configurer.applyConfiguration(configuration, defaultContext);
+
+ // Remember the default context.
+ synchronized (this.monitor) {
+ this.loggerContexts.put(configuration.getName(), defaultContext);
+ }
} catch (LoggerContextConfigurationFailedException lccfe) {
lccfe.printStackTrace(System.err);
}

Back to the top