aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-10-01 15:53:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-10-01 15:53:53 +0000
commit8035fd27919d1f598b0d655a3bf30200220462d3 (patch)
tree5881e9883cfb282ec37eb8ab1f903c59ff41ddb0 /src/core/nginx.c
parent4bed15b9b58f7ea5c1626162944db140b7119488 (diff)
downloadnginx-8035fd27919d1f598b0d655a3bf30200220462d3.tar.gz
nginx-8035fd27919d1f598b0d655a3bf30200220462d3.zip
nginx-0.1.0-2004-10-01-19:53:53 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 0f37f2ad8..a41c55cea 100644
--- 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;
}