diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-06-30 15:32:57 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-06-30 15:32:57 +0000 |
| commit | 504efffca833a0c4a66787d4440ead6254e49066 (patch) | |
| tree | b71ef669e0c551d03f550024c779bf0ed424cd13 /src/http/modules/ngx_http_log_module.c | |
| parent | 4cb276ae216b0ae3d4d19fa16cf2f4bde51c0c0a (diff) | |
| download | nginx-504efffca833a0c4a66787d4440ead6254e49066.tar.gz nginx-504efffca833a0c4a66787d4440ead6254e49066.tar.bz2 | |
fix error message
Diffstat (limited to 'src/http/modules/ngx_http_log_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_log_module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index b2a23dd70..f4eefdeaf 100644 --- 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_request_t *r, ngx_http_log_script_t *script, { 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, |
