summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-06-20 16:17:23 +0000
committerStefan Fritsch <sf@apache.org>2010-06-20 16:17:23 +0000
commitb7936c98ba0b45be57719a34e3fbd9dddd148040 (patch)
treeef6bc14b8bb1209647f6d2b22cceb00b45fbacf6 /modules
parent18f23bae9f90820b3465cc479595c443d9146b09 (diff)
downloadhttpd-b7936c98ba0b45be57719a34e3fbd9dddd148040.tar.gz
More trace logging
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@956374 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/http/http_filters.c2
-rw-r--r--modules/http/http_request.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c
index 4ab767a97c..0533c803c8 100644
--- a/modules/http/http_filters.c
+++ b/modules/http/http_filters.c
@@ -809,7 +809,7 @@ static apr_status_t send_all_header_fields(header_struct *h,
"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++;
diff --git a/modules/http/http_request.c b/modules/http/http_request.c
index f17983303e..a2d224effd 100644
--- a/modules/http/http_request.c
+++ b/modules/http/http_request.c
@@ -292,6 +292,19 @@ void ap_process_async_request(request_rec *r)
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);