Core: added debug logging of writev() in ngx_write_chain_to_file().

This commit is contained in:
Maxim Dounin 2012-11-21 00:52:35 +00:00
parent 248bc41893
commit d228cf3638

View File

@ -241,6 +241,9 @@ ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset,
return NGX_ERROR; return NGX_ERROR;
} }
ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0,
"writev: %d, %z", file->fd, n);
file->sys_offset += n; file->sys_offset += n;
file->offset += n; file->offset += n;
total += n; total += n;