Fix bug 43887. Include exception in the log message.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 23 Nov 2007 21:12:32 +0000 (21:12 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 23 Nov 2007 21:12:32 +0000 (21:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@597738 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/StandardWrapper.java

index 8c61204..6ed3485 100644 (file)
@@ -1787,7 +1787,7 @@ public class StandardWrapper
                 broadcaster.sendNotification(notification);
             }
         } catch( Exception ex ) {
-            log.info("Error registering servlet with jmx " + this);
+            log.info("Error registering servlet with jmx " + this, ex);
         }
 
         if (isJspServlet) {
@@ -1802,7 +1802,7 @@ public class StandardWrapper
                     .registerComponent(instance, jspMonitorON, null);
             } catch( Exception ex ) {
                 log.info("Error registering JSP monitoring with jmx " +
-                         instance);
+                         instance, ex);
             }
         }
     }