Author: pwang
Date: 2011-06-14 13:11:56 -0700 (Tue, 14 Jun 2011)
New Revision: 25753

Modified:
   
core3/launch-framework/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
Log:
Output warning message to logger instead of terminal window.

Modified: 
core3/launch-framework/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
===================================================================
--- 
core3/launch-framework/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
   2011-06-14 19:20:57 UTC (rev 25752)
+++ 
core3/launch-framework/trunk/launcher/src/main/java/org/cytoscape/launcher/internal/Launcher.java
   2011-06-14 20:11:56 UTC (rev 25753)
@@ -7,6 +7,8 @@
 import org.osgi.framework.BundleException;
 import org.osgi.framework.Constants;
 import org.osgi.service.startlevel.StartLevel;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import java.util.Map;
 import java.util.HashMap;
@@ -27,7 +29,8 @@
 public class Launcher {
 
        private static String[] args;
-
+       private static final Logger logger = 
LoggerFactory.getLogger(Launcher.class);
+       
        public static void main(String[] a) {
                args = a;
                
@@ -66,7 +69,7 @@
 
                        framework.waitForStop(0);
                } catch (Exception e) {
-                       e.printStackTrace();
+                       logger.warn(e.getMessage());
                }
        }
 

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to