Log any exceptions while activating deferred bundles. (FELIX-3306)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1350984 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java b/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
index 5ee1c1e..79de81c 100644
--- a/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
+++ b/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java
@@ -2215,9 +2215,12 @@
                             {
                                 felix.getFramework().activateBundle((BundleImpl) (lazy)[1], true);
                             }
-                            catch (BundleException ex)
+                            catch (Throwable ex)
                             {
-                                ex.printStackTrace();
+                                m_logger.log((BundleImpl) (lazy)[1],
+                                    Logger.LOG_WARNING,
+                                    "Unable to lazily start bundle.",
+                                    ex);
                             }
                         }
                     }