summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/node-launcher-equinox/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-24 05:00:58 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-24 05:00:58 +0000
commit007ebdc13fd330eb9a579b3b98acf6c9b81adb9c (patch)
tree3cd2d05eb63f81d580d3136aaf4e82a25d589a92 /java/sca/modules/node-launcher-equinox/src
parent46f717b74e7b97680981ec0a56650432599f82aa (diff)
Control the debug using osgi.debug system property
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@737302 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/node-launcher-equinox/src')
-rw-r--r--java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
index 2cdd0355de..bb53de2e5a 100644
--- a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
+++ b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
@@ -57,6 +57,12 @@ import org.osgi.framework.BundleContext;
*/
public class EquinoxHost {
private static Logger logger = Logger.getLogger(EquinoxHost.class.getName());
+
+ static {
+ if (getSystemProperty("osgi.debug") != null) {
+ logger.setLevel(Level.FINE);
+ }
+ }
private BundleContext bundleContext;
private Bundle launcherBundle;