dirkv 01/08/31 15:02:11
Modified: src/webdav/server/org/apache/slide/webdav/method
WebdavMethod.java
Log:
log stacktraces
Revision Changes Path
1.35 +12 -9
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java
Index: WebdavMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- WebdavMethod.java 2001/08/17 14:39:12 1.34
+++ WebdavMethod.java 2001/08/31 22:02:11 1.35
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java,v
1.34 2001/08/17 14:39:12 cmlenz Exp $
- * $Revision: 1.34 $
- * $Date: 2001/08/17 14:39:12 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/WebdavMethod.java,v
1.35 2001/08/31 22:02:11 dirkv Exp $
+ * $Revision: 1.35 $
+ * $Date: 2001/08/31 22:02:11 $
*
* ====================================================================
*
@@ -92,6 +92,8 @@
import org.apache.slide.security.*;
import org.apache.slide.webdav.*;
+import org.apache.slide.util.logger.Logger;
+
/**
* WebDAV method.
*
@@ -103,6 +105,7 @@
// -------------------------------------------------------------- Constants
+ private static final String LOG_CHANNEL = WebdavMethod.class.getName();
public static final String LOCK_TOKEN = "opaquelocktoken:";
public static final String SLIDE_NAMESPACE =
@@ -209,7 +212,7 @@
try {
md5Helper = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
- e.printStackTrace();
+ System.out.println(e.toString());
throw new IllegalStateException();
}
}
@@ -315,7 +318,7 @@
// Ignore the WebDav Exception and assume that the response code
// is already set.
} catch (Exception ex) {
- ex.printStackTrace();
+ Domain.log(ex,LOG_CHANNEL,Logger.ERROR);
resp.setStatus(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
throw new WebdavException(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
} finally {
@@ -365,9 +368,9 @@
requestBody = new
String(NodeRevisionContent.readFromStream(req.getInputStream()),
getEncodingString(req.getCharacterEncoding()));
}
- catch (Exception e) { e.printStackTrace();}
-
-
+ catch (Exception e) {
+ Domain.log(e,LOG_CHANNEL,Logger.ERROR);
+ }
}
@@ -433,7 +436,7 @@
result = lockTokenValue.substring(semi + 1,
lockTokenValue.length() - 1);
} catch (Exception e) {
- e.printStackTrace();
+ Domain.log(e,LOG_CHANNEL,Logger.ERROR);
}
return result;
}