From 626aacf89507aa425ced07924fb73504ac027d0e Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Wed, 30 May 2018 15:07:31 +0300 Subject: [PATCH] Added the debug for the returned status code in js_content. --- nginx/ngx_http_js_module.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 45689094..b0e3ec69 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -693,6 +693,9 @@ ngx_http_js_content_event_handler(ngx_http_request_t *r) return; } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http js content rc: %ui", ctx->status); + ngx_http_finalize_request(r, ctx->status); } @@ -711,6 +714,9 @@ ngx_http_js_content_write_event_handler(ngx_http_request_t *r) ctx = ngx_http_get_module_ctx(r, ngx_http_js_module); if (!njs_vm_pending(ctx->vm)) { + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http js content rc: %ui", ctx->status); + ngx_http_finalize_request(r, ctx->status); return; } -- 2.47.3