[njs] Added the debug for the returned status code in js_content.

Dmitry Volyntsev xeioex at nginx.com
Wed May 30 12:07:47 UTC 2018


details:   http://hg.nginx.org/njs/rev/f8c0b88d8bf7
branches:  
changeset: 527:f8c0b88d8bf7
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed May 30 15:07:31 2018 +0300
description:
Added the debug for the returned status code in js_content.

diffstat:

 nginx/ngx_http_js_module.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 1ac5805c9d19 -r f8c0b88d8bf7 nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c	Wed May 30 15:07:04 2018 +0300
+++ b/nginx/ngx_http_js_module.c	Wed May 30 15:07:31 2018 +0300
@@ -693,6 +693,9 @@ ngx_http_js_content_event_handler(ngx_ht
         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(
     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;
     }


More information about the nginx-devel mailing list