aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mnutt...@apache.org
Subject svn commit: r1620904 - /aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/StartAction.java
Date Wed, 27 Aug 2014 14:28:23 GMT
Author: mnuttall
Date: Wed Aug 27 14:28:22 2014
New Revision: 1620904

URL: http://svn.apache.org/r1620904
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=1620904&r1=1620903&r2=1620904&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 14:28:22 2014
@@ -35,6 +35,7 @@ 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;
@@ -261,7 +262,8 @@ public class StartAction extends Abstrac
 		
 		if (logger.isDebugEnabled()) { 
 			int bundleStartLevel = bundle.adapt(BundleStartLevel.class).getStartLevel();
-			int fwStartLevel = bundle.adapt(FrameworkStartLevel.class).getStartLevel();
+			Bundle systemBundle = bundle.getBundleContext().getBundle(0);
+			int fwStartLevel = systemBundle.adapt(FrameworkStartLevel.class).getStartLevel();
 			logger.debug("StartAction: starting bundle " + bundle.getSymbolicName()
 				+ " " + bundle.getVersion().toString()
 				+ " bundleStartLevel=" + bundleStartLevel



Mime
View raw message