[njs] Fixed the format specifier for ctx->status in debug log.

Dmitry Volyntsev xeioex at nginx.com
Wed May 30 14:39:31 UTC 2018


details:   http://hg.nginx.org/njs/rev/143a7f9db504
branches:  
changeset: 528:143a7f9db504
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed May 30 17:17:13 2018 +0300
description:
Fixed the format specifier for ctx->status in debug log.

diffstat:

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

diffs (21 lines):

diff -r f8c0b88d8bf7 -r 143a7f9db504 nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c	Wed May 30 15:07:31 2018 +0300
+++ b/nginx/ngx_http_js_module.c	Wed May 30 17:17:13 2018 +0300
@@ -694,7 +694,7 @@ ngx_http_js_content_event_handler(ngx_ht
     }
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                   "http js content rc: %ui", ctx->status);
+                   "http js content rc: %i", ctx->status);
 
     ngx_http_finalize_request(r, ctx->status);
 }
@@ -715,7 +715,7 @@ ngx_http_js_content_write_event_handler(
 
     if (!njs_vm_pending(ctx->vm)) {
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                       "http js content rc: %ui", ctx->status);
+                       "http js content rc: %i", ctx->status);
 
         ngx_http_finalize_request(r, ctx->status);
         return;


More information about the nginx-devel mailing list