]> git.kaiwu.me - nginx.git/commitdiff
add debug log
authorIgor Sysoev <igor@sysoev.ru>
Mon, 7 May 2007 07:04:00 +0000 (07:04 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 7 May 2007 07:04:00 +0000 (07:04 +0000)
src/os/unix/ngx_linux_sendfile_chain.c

index eb15c7a5f8d39cf6d8d41d9db4d9c920876bc9e6..ab2a3cf1b942b28c65e29fafbf0e5ea5f2bf1e49 100644 (file)
@@ -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) {