aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-10-03 20:02:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-10-03 20:02:06 +0000
commitaad1b89b68b0651b5729b15203081f6b4620847a (patch)
tree8a5906c3607c082e27d4d8ebc1e9a9e5b42822b5 /src/core/ngx_conf_file.c
parent8035fd27919d1f598b0d655a3bf30200220462d3 (diff)
downloadnginx-aad1b89b68b0651b5729b15203081f6b4620847a.tar.gz
nginx-aad1b89b68b0651b5729b15203081f6b4620847a.zip
nginx-0.1.0-2004-10-04-00:02:06 import
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r--src/core/ngx_conf_file.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index d51320908..90a09d231 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -560,7 +560,7 @@ static char *ngx_conf_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
- ngx_log_error(NGX_LOG_INFO, cf->log, 0, "include %s", file.data);
+ ngx_log_debug1(NGX_LOG_DEBUG_CORE, cf->log, 0, "include %s", file.data);
return ngx_conf_parse(cf, &file);
}
@@ -597,6 +597,11 @@ ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
ngx_list_part_t *part;
ngx_open_file_t *file;
+#if (NGX_SUPPRESS_WARN)
+ full.len = 0;
+ full.data = NULL;
+#endif
+
if (name) {
full = *name;
@@ -637,7 +642,7 @@ ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
file->name = full;
} else {
- file->fd = STDERR_FILENO;
+ file->fd = ngx_stderr_fileno;
file->name.len = 0;
file->name.data = NULL;
}