Author: rfeng
Date: Sat Jan 24 05:00:58 2009
New Revision: 737302

URL: http://svn.apache.org/viewvc?rev=737302&view=rev
Log:
Control the debug using osgi.debug system property

Modified:
    
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java

Modified: 
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java?rev=737302&r1=737301&r2=737302&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
 (original)
+++ 
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
 Sat Jan 24 05:00:58 2009
@@ -57,6 +57,12 @@
  */
 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;


Reply via email to