Mercurial > hg > nginx-quic
diff src/core/nginx.c @ 448:241dc8092a33
nginx-0.1.0-2004-10-01-19:53:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 01 Oct 2004 15:53:53 +0000 |
parents | 42d11f017717 |
children | 3b1e8c9df9ad |
line wrap: on
line diff
--- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -118,7 +118,7 @@ int main(int argc, char *const *argv) ngx_pid = ngx_getpid(); - if (!(log = ngx_log_init_errlog())) { + if (!(log = ngx_log_init_stderr())) { return 1; } @@ -144,6 +144,14 @@ int main(int argc, char *const *argv) return 1; } + if (ngx_test_config) { + log->log_level = NGX_LOG_INFO; + } else { + if (ngx_log_init_error_log() == NGX_ERROR) { + return 1; + } + } + if (ngx_os_init(log) == NGX_ERROR) { return 1; }