add filename to the log message

This commit is contained in:
Igor Sysoev 2008-09-11 15:52:11 +00:00
parent 316542508b
commit d0df295655

View File

@ -505,8 +505,8 @@ ngx_output_chain_copy_buf(ngx_output_chain_ctx_t *ctx)
if (n != size) { if (n != size) {
ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0, ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, 0,
ngx_read_file_n " read only %z of %O from file", ngx_read_file_n " read only %z of %O from \"%s\"",
n, size); n, size, src->file->name.data);
if (n == 0) { if (n == 0) {
return NGX_ERROR; return NGX_ERROR;
} }