Mercurial > hg > nginx
changeset 9257:0748264a1278
Request body: improved debug logging.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 27 Apr 2024 18:21:05 +0300 |
parents | 43fe0edddba1 |
children | c9550e77186c |
files | src/http/ngx_http_request_body.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c Sat Apr 27 18:20:17 2024 +0300 +++ b/src/http/ngx_http_request_body.c Sat Apr 27 18:21:05 2024 +0300 @@ -48,6 +48,9 @@ return NGX_OK; } + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http read request body"); + if (ngx_http_test_expect(r) != NGX_OK) { rc = NGX_HTTP_INTERNAL_SERVER_ERROR; goto done; @@ -649,6 +652,9 @@ return NGX_OK; } + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http set discard body"); + #if (NGX_HTTP_V2) if (r->stream) { r->stream->skip_data = 1; @@ -668,8 +674,6 @@ rev = r->connection->read; - ngx_log_debug0(NGX_LOG_DEBUG_HTTP, rev->log, 0, "http set discard body"); - if (rev->timer_set) { ngx_del_timer(rev); }