Author: mnuttall
Date: Wed Aug 27 11:24:03 2014
New Revision: 1620865
URL: http://svn.apache.org/r1620865
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=1620865&r1=1620864&r2=1620865&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 11:24:03 2014
@@ -37,6 +37,7 @@ import org.osgi.framework.BundleExceptio
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.framework.namespace.IdentityNamespace;
import org.osgi.framework.startlevel.BundleStartLevel;
+import org.osgi.framework.startlevel.FrameworkStartLevel;
import org.osgi.framework.wiring.BundleRevision;
import org.osgi.framework.wiring.FrameworkWiring;
import org.osgi.resource.Resource;
@@ -259,13 +260,22 @@ public class StartAction extends Abstrac
return;
if (logger.isDebugEnabled()) {
- int startLevel =
bundle.adapt(BundleStartLevel.class).getStartLevel();
+ int bundleStartLevel =
bundle.adapt(BundleStartLevel.class).getStartLevel();
+ int fwStartLevel =
bundle.adapt(FrameworkStartLevel.class).getStartLevel();
logger.debug("StartAction: starting bundle " +
bundle.getSymbolicName()
+ " " + bundle.getVersion().toString()
- + " startLevel=" + startLevel);
+ + " bundleStartLevel=" + bundleStartLevel
+ + " frameworkStartLevel=" + fwStartLevel);
}
bundle.start(Bundle.START_TRANSIENT |
Bundle.START_ACTIVATION_POLICY);
+
+ if (logger.isDebugEnabled()) {
+ logger.debug("StartAction: bundle " +
bundle.getSymbolicName()
+ + " " + bundle.getVersion().toString()
+ + " started correctly");
+ }
+
if (coordination == null)
return;
coordination.addParticipant(new Participant() {