]> git.kaiwu.me - njs.git/commitdiff
Added the debug for the returned status code in js_content.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 30 May 2018 12:07:31 +0000 (15:07 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 30 May 2018 12:07:31 +0000 (15:07 +0300)
nginx/ngx_http_js_module.c

index 45689094101a35d7ae4f68afaa558a5d9a98cdd3..b0e3ec6927e99621a459049b6d215a2c514db7eb 100644 (file)
@@ -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;
     }