Author: mnuttall
Date: Wed Aug 27 16:22:05 2014
New Revision: 1620929

URL: http://svn.apache.org/r1620929
Log:
Aries-1239: Correct/improve logging in 
org.apache.aries.subsystem.core.internal.StartAction

Modified:
    
aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/StartAction.java

Modified: 
aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/StartAction.java
URL: 
http://svn.apache.org/viewvc/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/StartAction.java?rev=1620929&r1=1620928&r2=1620929&view=diff
==============================================================================
--- 
aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/StartAction.java
 (original)
+++ 
aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/StartAction.java
 Wed Aug 27 16:22:05 2014
@@ -35,7 +35,6 @@ import org.eclipse.equinox.region.Region
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleException;
 import org.osgi.framework.InvalidSyntaxException;
-import org.osgi.framework.launch.Framework;
 import org.osgi.framework.namespace.IdentityNamespace;
 import org.osgi.framework.startlevel.BundleStartLevel;
 import org.osgi.framework.startlevel.FrameworkStartLevel;
@@ -262,7 +261,7 @@ public class StartAction extends Abstrac
                
                if (logger.isDebugEnabled()) { 
                        int bundleStartLevel = 
bundle.adapt(BundleStartLevel.class).getStartLevel();
-                       Bundle systemBundle = 
bundle.getBundleContext().getBundle(0);
+                       Bundle 
systemBundle=Activator.getInstance().getBundleContext().getBundle(0);
                        int fwStartLevel = 
systemBundle.adapt(FrameworkStartLevel.class).getStartLevel();
                        logger.debug("StartAction: starting bundle " + 
bundle.getSymbolicName()
                                + " " + bundle.getVersion().toString()


Reply via email to