X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2Fosgi%2FConfigManagerActivator.java;h=16bb9078751a1253fad9ce8d920e3993b980af39;hp=1d8c3bbc30bff75a5f41d51dd5af2e06ca919dff;hb=1635f00212f8a583c6160cc3ff153e2c62af5092;hpb=21870dc0696930b3be36c689bc7ae0929c5b9878 diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/osgi/ConfigManagerActivator.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/osgi/ConfigManagerActivator.java index 1d8c3bbc30..16bb907875 100644 --- a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/osgi/ConfigManagerActivator.java +++ b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/osgi/ConfigManagerActivator.java @@ -51,6 +51,7 @@ public class ConfigManagerActivator implements BundleActivator, SynchronousBundl @Override public void start(final BundleContext context) { + LOG.info("Config manager starting..."); try { // the inner strategy is backed by thread context cl? final ModuleInfoBackedContext moduleInfoBackedContext = ModuleInfoBackedContext.create(); @@ -133,17 +134,20 @@ public class ConfigManagerActivator implements BundleActivator, SynchronousBundl context.addBundleListener(this); } catch(final Exception e) { - LOG.warn("Error starting config manager", e); + LOG.error("Error starting config manager", e); } catch(final Error e) { // Log JVM Error and re-throw. The OSGi container may silently fail the bundle and not always log // the exception. This has been seen on initial feature install. LOG.error("Error starting config manager", e); throw e; } + + LOG.info("Config manager start complete"); } @Override public void stop(final BundleContext context) throws Exception { + LOG.info("Config manager stopping"); context.removeBundleListener(this); this.autoCloseable.close(); } @@ -156,7 +160,7 @@ public class ConfigManagerActivator implements BundleActivator, SynchronousBundl // If the system bundle (id 0) is stopping close the ConfigRegistry so it destroys all modules. On // shutdown the system bundle is stopped first. - if((event.getBundle().getBundleId() == SYSTEM_BUNDLE_ID) && (event.getType() == BundleEvent.STOPPING)) { + if(event.getBundle().getBundleId() == SYSTEM_BUNDLE_ID && event.getType() == BundleEvent.STOPPING) { this.configRegistry.close(); } }