add debug log

This commit is contained in:
Igor Sysoev 2007-05-07 07:04:00 +00:00
parent c9b57dc081
commit c5a60bb4a0

View File

@ -254,6 +254,10 @@ ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
#else #else
offset = (int32_t) file->file_pos; offset = (int32_t) file->file_pos;
#endif #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); rc = sendfile(c->fd, file->file->fd, &offset, file_size);
if (rc == -1) { if (rc == -1) {