From d228cf3638eec3cb44023c506bebb9cfb7372fe9 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 21 Nov 2012 00:52:35 +0000 Subject: [PATCH] Core: added debug logging of writev() in ngx_write_chain_to_file(). --- src/os/unix/ngx_files.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index d71aec316..65d2320b2 100644 --- 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, ngx_chain_t *cl, off_t offset, 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;