This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ab0cd03763 Improve debug log in DefaultServlet/WebdavServlet
ab0cd03763 is described below
commit ab0cd03763be2b74cd6c6d8a083c8b02325cce2f
Author: Michael Osipov <[email protected]>
AuthorDate: Wed Oct 2 11:41:58 2024 +0200
Improve debug log in DefaultServlet/WebdavServlet
---
java/org/apache/catalina/servlets/DefaultServlet.java | 2 +-
java/org/apache/catalina/servlets/WebdavServlet.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java
b/java/org/apache/catalina/servlets/DefaultServlet.java
index 007c1ad45d..18842f5156 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -2550,7 +2550,7 @@ public class DefaultServlet extends HttpServlet {
protected IOException copyRange(InputStream istream, ServletOutputStream
ostream, long start, long end) {
if (debug > 10) {
- log("Serving bytes:" + start + "-" + end);
+ log("Serving bytes: " + start + "-" + end);
}
long skipped = 0;
diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java
b/java/org/apache/catalina/servlets/WebdavServlet.java
index aa35636bff..4e4e7b60fa 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -1465,7 +1465,7 @@ public class WebdavServlet extends DefaultServlet
implements PeriodicEventListen
destinationPath = destinationPath.substring(reqContextPath.length() +
req.getServletPath().length());
if (debug > 0) {
- log("Dest path :" + destinationPath);
+ log("Dest path: " + destinationPath);
}
// Check destination path to protect special subdirectories
@@ -1727,7 +1727,7 @@ public class WebdavServlet extends DefaultServlet
implements PeriodicEventListen
private void deleteCollection(HttpServletRequest req, String path,
Map<String,Integer> errorList) {
if (debug > 1) {
- log("Delete:" + path);
+ log("Delete collection: " + path);
}
// Prevent deletion of special subdirectories
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]