jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r354817 - /incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/JcrDavException.java
Date Wed, 07 Dec 2005 17:46:43 GMT
Author: bcm
Date: Wed Dec  7 09:46:40 2005
New Revision: 354817

URL: http://svn.apache.org/viewcvs?rev=354817&view=rev
Log:
when converting an exception to a dav error response, write the stack
trace to the debug stream so that we can more easily understand the
original problem.

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/JcrDavException.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/JcrDavException.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/JcrDavException.java?rev=354817&r1=354816&r2=354817&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/JcrDavException.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/JcrDavException.java
Wed Dec  7 09:46:40 2005
@@ -64,6 +64,9 @@
     public JcrDavException(Exception e, int errorCode) {
         super(errorCode, e.getMessage());
         exceptionClass = e.getClass();
+        if (log.isDebugEnabled()) {
+            log.debug("Handling exception with error code " + errorCode, e);
+        }
     }
 
     public JcrDavException(RepositoryException e) {
@@ -84,4 +87,4 @@
         error.addContent(excep);
         return error;
     }
-}
\ No newline at end of file
+}



Mime
View raw message