[PATCH 02 of 13] Core: added debug logging of writev() in ngx_write_chain_to_file()

Maxim Dounin mdounin at mdounin.ru
Fri Nov 16 11:02:24 UTC 2012


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1352393278 -14400
# Node ID 52c683ed3d912230d21e3c058517ed3b3acdaee7
# Parent  c26606971d58dd27df5f72b9fcf90bc883038d76
Core: added debug logging of writev() in ngx_write_chain_to_file().

diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c
--- a/src/os/unix/ngx_files.c
+++ b/src/os/unix/ngx_files.c
@@ -241,6 +241,9 @@ ngx_write_chain_to_file(ngx_file_t *file
             return NGX_ERROR;
         }
 
+        ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0,
+                       "writev: %d, %z", file->fd, n);
+
         file->sys_offset += n;
         file->offset += n;
         total += n;



More information about the nginx-devel mailing list