Mercurial > hg > nginx
diff src/http/modules/ngx_http_log_module.c @ 2077:479440385e35
fix error message
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 Jun 2008 15:32:57 +0000 |
parents | ee2fecdfdef7 |
children | 9acbc5e7bcbd |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -422,7 +422,8 @@ ngx_http_log_script_write(ngx_http_reque { ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, ngx_open_file_n " \"%s\" failed", log.data); - return -1; + /* simulate successfull logging */ + return len; } ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,