summaryrefslogtreecommitdiffhomepage
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-04-18 19:06:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-04-18 19:06:02 +0000
commit9bfb434d241816749077e21f499b8efd41c3625d (patch)
treedefc89b07684b0bd31b77dd61825893e434392ba /src/core/nginx.c
parent32075f53e94183c647da58d4d832a58725d36c49 (diff)
downloadnginx-9bfb434d241816749077e21f499b8efd41c3625d.tar.gz
nginx-9bfb434d241816749077e21f499b8efd41c3625d.tar.bz2
nginx-0.0.3-2004-04-18-23:06:02 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 766257c8a..3c5f789fe 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -140,11 +140,19 @@ int main(int argc, char *const *argv)
cycle = ngx_init_cycle(&init_cycle);
if (cycle == NULL) {
+ if (ngx_test_config) {
+ ngx_log_error(NGX_LOG_EMERG, log, 0,
+ "the configuration file %s test failed",
+ init_cycle.conf_file.data);
+ }
+
return 1;
}
if (ngx_test_config) {
- ngx_log_error(NGX_LOG_INFO, cycle->log, 0, "config syntax is ok");
+ ngx_log_error(NGX_LOG_INFO, log, 0,
+ "the configuration file %s was tested successfully",
+ init_cycle.conf_file.data);
return 0;
}