aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-04 10:03:57 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-04 10:03:57 +0000
commit6b373a96b12840ba62af819dbcdf6dc601d9f9a9 (patch)
treedf89fe28a820acf0f7bbf96391ce500721b74071 /src
parente5d453228e39bbfb663aa3c0b45a9024bf8a9956 (diff)
downloadnginx-6b373a96b12840ba62af819dbcdf6dc601d9f9a9.tar.gz
nginx-6b373a96b12840ba62af819dbcdf6dc601d9f9a9.zip
add uwsgi_param and client request headers debug logging
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_uwsgi_module.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c
index 4e601ff76..b4478fd15 100644
--- a/src/http/modules/ngx_http_uwsgi_module.c
+++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -540,6 +540,11 @@ ngx_http_uwsgi_create_request(ngx_http_request_t *r)
}
e.ip += sizeof(uintptr_t);
+
+ ngx_log_debug4(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "uwsgi param: \"%*s: %*s\"",
+ key_len, e.pos - (key_len + 2 + val_len),
+ val_len, e.pos - val_len);
}
b->last = e.pos;
@@ -584,6 +589,11 @@ ngx_http_uwsgi_create_request(ngx_http_request_t *r)
*b->last++ = (u_char) (val_len & 0xff);
*b->last++ = (u_char) ((val_len >> 8) & 0xff);
b->last = ngx_copy(b->last, header[i].value.data, val_len);
+
+ ngx_log_debug4(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "uwsgi param: \"%*s: %*s\"",
+ key_len, b->last - (key_len + 2 + val_len),
+ val_len, b->last - val_len);
}
}