From: Dmitry Volyntsev Date: Wed, 30 May 2018 12:07:31 +0000 (+0300) Subject: Added the debug for the returned status code in js_content. X-Git-Tag: 0.2.1~3 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=626aacf89507aa425ced07924fb73504ac027d0e;p=njs.git Added the debug for the returned status code in js_content. --- 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; }