httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r956374 - in /httpd/httpd/trunk: modules/http/http_filters.c modules/http/http_request.c server/request.c
Date Sun, 20 Jun 2010 16:17:24 GMT
Author: sf
Date: Sun Jun 20 16:17:23 2010
New Revision: 956374

URL: http://svn.apache.org/viewvc?rev=956374&view=rev
Log:
More trace logging

Modified:
    httpd/httpd/trunk/modules/http/http_filters.c
    httpd/httpd/trunk/modules/http/http_request.c
    httpd/httpd/trunk/server/request.c

Modified: httpd/httpd/trunk/modules/http/http_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_filters.c?rev=956374&r1=956373&r2=956374&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_filters.c (original)
+++ httpd/httpd/trunk/modules/http/http_filters.c Sun Jun 20 16:17:23 2010
@@ -809,7 +809,7 @@ static apr_status_t send_all_header_fiel
                       "Headers sent to client:");
         t_elt = (const apr_table_entry_t *)(elts->elts);
         do {
-            ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, "%s: %s",
+            ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, "  %s: %s",
                           ap_escape_logitem(r->pool, t_elt->key),
                           ap_escape_logitem(r->pool, t_elt->val));
             t_elt++;

Modified: httpd/httpd/trunk/modules/http/http_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_request.c?rev=956374&r1=956373&r2=956374&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_request.c (original)
+++ httpd/httpd/trunk/modules/http/http_request.c Sun Jun 20 16:17:23 2010
@@ -292,6 +292,19 @@ void ap_process_async_request(request_re
         ap_time_process_request(r->connection->sbh, START_PREQUEST);
     }
 
+    if (APLOGrtrace4(r)) {
+        int i;
+        const apr_array_header_t *t_h = apr_table_elts(r->headers_in);
+        const apr_table_entry_t *t_elt = (apr_table_entry_t *)t_h->elts;
+        ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r,
+                      "Headers received from client:");
+        for (i = 0; i < t_h->nelts; i++, t_elt++) {
+            ap_log_rerror(APLOG_MARK, APLOG_TRACE4, 0, r, "  %s: %s",
+                          ap_escape_logitem(r->pool, t_elt->key),
+                          ap_escape_logitem(r->pool, t_elt->val));
+        }
+    }
+
 #if APR_HAS_THREADS
     apr_thread_mutex_create(&r->invoke_mtx, APR_THREAD_MUTEX_DEFAULT, r->pool);
     apr_thread_mutex_lock(r->invoke_mtx);

Modified: httpd/httpd/trunk/server/request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/request.c?rev=956374&r1=956373&r2=956374&view=diff
==============================================================================
--- httpd/httpd/trunk/server/request.c (original)
+++ httpd/httpd/trunk/server/request.c Sun Jun 20 16:17:23 2010
@@ -99,6 +99,9 @@ static int decl_die(int status, const ch
         return HTTP_INTERNAL_SERVER_ERROR;
     }
     else {
+        ap_log_rerror(APLOG_MARK, APLOG_TRACE3, 0, r,
+                      "auth phase '%s' gave status %d: %s", phase,
+                      status, r->uri);
         return status;
     }
 }
@@ -224,6 +227,12 @@ AP_DECLARE(int) ap_process_request_inter
                     return decl_die(access_status, "check authorization", r);
                 }
             }
+            else {
+                    ap_log_rerror(APLOG_MARK, APLOG_TRACE3, 0, r,
+                        "request authorized without authentication by "
+                        "access_checker hook and 'Satisfy any': %s",
+                        r->uri);
+            }
             break;
         }
 
@@ -238,6 +247,8 @@ AP_DECLARE(int) ap_process_request_inter
     }
 
     if ((access_status = ap_run_fixups(r)) != OK) {
+        ap_log_rerror(APLOG_MARK, APLOG_TRACE3, 0, r, "fixups hook gave %d: %s",
+                      access_status, r->uri);
         return access_status;
     }
 



Mime
View raw message