[nginx] Request body: commented out debug printing of old buffers.

Maxim Dounin mdounin at mdounin.ru
Wed Feb 8 18:29:04 UTC 2017


details:   http://hg.nginx.org/nginx/rev/5e2423bce883
branches:  
changeset: 6904:5e2423bce883
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed Feb 08 19:36:03 2017 +0300
description:
Request body: commented out debug printing of old buffers.

This is not really needed in practice, and causes excessive debug output
in some of our tests.

diffstat:

 src/http/ngx_http_request_body.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -1087,6 +1087,7 @@ ngx_http_request_body_save_filter(ngx_ht
 
 #if (NGX_DEBUG)
 
+#if 0
     for (cl = rb->bufs; cl; cl = cl->next) {
         ngx_log_debug7(NGX_LOG_DEBUG_EVENT, r->connection->log, 0,
                        "http body old buf t:%d f:%d %p, pos %p, size: %z "
@@ -1097,6 +1098,7 @@ ngx_http_request_body_save_filter(ngx_ht
                        cl->buf->file_pos,
                        cl->buf->file_last - cl->buf->file_pos);
     }
+#endif
 
     for (cl = in; cl; cl = cl->next) {
         ngx_log_debug7(NGX_LOG_DEBUG_EVENT, r->connection->log, 0,


More information about the nginx-devel mailing list