]> git.kaiwu.me - nginx.git/commitdiff
add filename to the log message
authorIgor Sysoev <igor@sysoev.ru>
Thu, 11 Sep 2008 15:52:11 +0000 (15:52 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 11 Sep 2008 15:52:11 +0000 (15:52 +0000)
src/core/ngx_output_chain.c

index 3d5ae1db5e50efdfa8a86b794cebee615ed4ac73..ecb0f31bfcb3ae811e36cdd7742b462e59708af8 100644 (file)
@@ -505,8 +505,8 @@ ngx_output_chain_copy_buf(ngx_output_chain_ctx_t *ctx)
 
         if (n != size) {
             ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0,
-                          ngx_read_file_n " read only %z of %O from file",
-                          n, size);
+                          ngx_read_file_n " read only %z of %O from \"%s\"",
+                          n, size, src->file->name.data);
             if (n == 0) {
                 return NGX_ERROR;
             }