Improve OSGI Boot logging
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 29 Jul 2009 19:35:55 +0000 (19:35 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 29 Jul 2009 19:35:55 +0000 (19:35 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2831 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.osgiboot/src/main/java/org/argeo/slc/osgiboot/OsgiBoot.java

index cc4cb40e775ec34f19fae185c47093af69299d60..325d3602840ea6be94fa0cacc4200c55b3219dec 100644 (file)
@@ -85,6 +85,8 @@ public class OsgiBoot {
                        } catch (BundleException e) {
                                warn("Could not install bundle from " + url + ": "
                                                + e.getMessage());
+                               if (debug)
+                                       e.printStackTrace();
                        }
                }
 
@@ -175,6 +177,8 @@ public class OsgiBoot {
                                } catch (Exception e) {
                                        warn("Bundle " + symbolicName + " cannot be started: "
                                                        + e.getMessage());
+                                       if (debug)
+                                               e.printStackTrace();
                                        // was found even if start failed
                                        notFoundBundles.remove(symbolicName);
                                }