aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_sendfile_chain.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-05-07 07:04:00 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-05-07 07:04:00 +0000
commitc5a60bb4a07772785ab47bc72907353a2ed99b58 (patch)
tree638bea3222763758082292ba0de95354174f5cee /src/os/unix/ngx_linux_sendfile_chain.c
parentc9b57dc081a33f7102587dd3e8b7e84879f89107 (diff)
downloadnginx-c5a60bb4a07772785ab47bc72907353a2ed99b58.tar.gz
nginx-c5a60bb4a07772785ab47bc72907353a2ed99b58.zip
add debug log
Diffstat (limited to 'src/os/unix/ngx_linux_sendfile_chain.c')
-rw-r--r--src/os/unix/ngx_linux_sendfile_chain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c
index eb15c7a5f..ab2a3cf1b 100644
--- a/src/os/unix/ngx_linux_sendfile_chain.c
+++ b/src/os/unix/ngx_linux_sendfile_chain.c
@@ -254,6 +254,10 @@ ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
#else
offset = (int32_t) file->file_pos;
#endif
+
+ ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
+ "sendfile: @%O %uz", file->file_pos, file_size);
+
rc = sendfile(c->fd, file->file->fd, &offset, file_size);
if (rc == -1) {