Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnjum Fatima2019-01-09 17:50:37 +0000
committerThomas Watson2019-01-11 14:28:24 +0000
commit0799bffaa7c6b44c79bf044511c7fcdfc2e096de (patch)
tree09c4d1197f027fe3037bcd3fb23339eb81623111 /bundles/org.eclipse.osgi/container/src
parentbbccd4175ebd9df8c3ae41086c51fd8b0a219650 (diff)
downloadrt.equinox.framework-0799bffaa7c6b44c79bf044511c7fcdfc2e096de.tar.gz
rt.equinox.framework-0799bffaa7c6b44c79bf044511c7fcdfc2e096de.tar.xz
rt.equinox.framework-0799bffaa7c6b44c79bf044511c7fcdfc2e096de.zip
STARTING/STOPPING bundle event Change-Id: I44ca2127c8ac1a8f1336d64c0f541e208f2cced8 Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/LogServiceManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/LogServiceManager.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/LogServiceManager.java
index 7f4eca556..79f845b98 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/LogServiceManager.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/log/LogServiceManager.java
@@ -130,7 +130,11 @@ public class LogServiceManager implements SynchronousBundleListener, FrameworkLi
Bundle bundle = event.getBundle();
if (logReaderServiceFactory.isLoggable(bundle, LOGGER_BUNDLE_EVENT, LogService.LOG_INFO)) {
LoggerImpl logger = (LoggerImpl) systemBundleLog.getLogger(LOGGER_BUNDLE_EVENT);
- logger.log(bundle, event, null, LogService.LOG_INFO, getBundleEventTypeName(event.getType()), null, null);
+ int eventType = event.getType();
+ if (eventType == BundleEvent.STARTING || eventType == BundleEvent.STOPPING || eventType == BundleEvent.LAZY_ACTIVATION) {
+ return;
+ }
+ logger.log(bundle, event, null, LogService.LOG_INFO, getBundleEventTypeName(eventType), null, null);
}
}

Back to the top