This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c06616a83 Remove debug code
8c06616a83 is described below

commit 8c06616a83639f7f425a889e739692f9731f049f
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 3 19:42:17 2026 +0100

    Remove debug code
---
 java/org/apache/catalina/valves/PersistentValve.java | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/java/org/apache/catalina/valves/PersistentValve.java 
b/java/org/apache/catalina/valves/PersistentValve.java
index 1bfca4d000..5934e46978 100644
--- a/java/org/apache/catalina/valves/PersistentValve.java
+++ b/java/org/apache/catalina/valves/PersistentValve.java
@@ -113,8 +113,6 @@ public class PersistentValve extends ValveBase {
     @Override
     public void invoke(Request request, Response response) throws IOException, 
ServletException {
 
-        containerLog.error("invoke");
-
         // request without session
         if (isRequestWithoutSession(request.getDecodedRequestURI())) {
             if (containerLog.isTraceEnabled()) {
@@ -135,8 +133,6 @@ public class PersistentValve extends ValveBase {
 
         boolean asyncOnEntry = request.isAsync();
 
-        containerLog.error("invoke: asyncOnEntry [" + asyncOnEntry + "]");
-
         String sessionId = request.getRequestedSessionId();
         UsageCountingSemaphore semaphore = null;
         boolean mustReleaseSemaphore = true;
@@ -219,7 +215,6 @@ public class PersistentValve extends ValveBase {
             // Ask the next valve to process the request.
             getNext().invoke(request, response);
         } finally {
-            containerLog.error("invoke - finally isAsync: [" + 
request.isAsync() + "]");
             if (request.isAsync()) {
                 /*
                  * Need to continue to hold the semaphore until asynchronous 
processing is complete. Register a listener
@@ -530,26 +525,21 @@ public class PersistentValve extends ValveBase {
 
         @Override
         public void onComplete(AsyncEvent event) throws IOException {
-            containerLog.error("listener - on complete");
             storeSession(request, context, originalSessionId, semaphore, 
mustReleaseSemaphore);
         }
 
         @Override
         public void onTimeout(AsyncEvent event) throws IOException {
-            containerLog.error("listener - on timeout");
             // NO-OP.
         }
 
         @Override
         public void onError(AsyncEvent event) throws IOException {
-            containerLog.error("listener - on error");
             // NO-OP.
         }
 
         @Override
         public void onStartAsync(AsyncEvent event) throws IOException {
-            containerLog.error("listener - on start async");
-
             event.getAsyncContext().addListener(this);
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to