Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/ExtendedLogServiceFactory.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/ExtendedLogServiceFactory.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/ExtendedLogServiceFactory.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/ExtendedLogServiceFactory.java
index 11feeb46d..a33f86c38 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/ExtendedLogServiceFactory.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/ExtendedLogServiceFactory.java
@@ -143,7 +143,7 @@ public class ExtendedLogServiceFactory implements ServiceFactory<ExtendedLogServ
}
if (level == null && contextName != null) {
// non-null context name is a non-root context;
- // must not check the root context
+ // must check the root context for non-root contexts
EquinoxLoggerContext rootContext = loggerContextTargetMap.getRootLoggerContext();
if (rootContext != null) {
level = rootContext.getEffectiveLogLevel(name);
@@ -170,17 +170,6 @@ public class ExtendedLogServiceFactory implements ServiceFactory<ExtendedLogServ
@Override
public void setLogLevels(Map<String, LogLevel> logLevels) {
- if (!setWithConfigAdmin(logLevels)) {
- doSetLogLevels(logLevels);
- }
- }
-
- private boolean setWithConfigAdmin(Map<String, LogLevel> logLevels) {
- // TODO Auto-generated method stub
- return false;
- }
-
- private void doSetLogLevels(Map<String, LogLevel> logLevels) {
boolean readLocked = false;
try {
contextsLock.writeLock().lock();
@@ -203,7 +192,7 @@ public class ExtendedLogServiceFactory implements ServiceFactory<ExtendedLogServ
@Override
public void clear() {
- doSetLogLevels(Collections.<String, LogLevel> emptyMap());
+ setLogLevels(Collections.<String, LogLevel> emptyMap());
}
@Override

Back to the top