Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-16 17:00:05 +0300
committerIgor Sysoev <igor@sysoev.ru>2009-01-16 17:00:05 +0300
commit91cf00da1787ea1386dba82112fa9b1a0511eff2 (patch)
tree3b0c4f7a2722edf90536322a1477044c57801653 /src/core/ngx_log.c
parent6019a7621b11f587fd18e1f9823e2438a7e14686 (diff)
set the error level as default http error_log level
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r--src/core/ngx_log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index cc38b02da..a9221db6e 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -302,7 +302,10 @@ ngx_set_error_log_levels(ngx_conf_t *cf, ngx_log_t *log)
}
}
- if (log->log_level == NGX_LOG_DEBUG) {
+ if (log->log_level == 0) {
+ log->log_level = NGX_LOG_ERR;
+
+ } else if (log->log_level == NGX_LOG_DEBUG) {
log->log_level = NGX_LOG_DEBUG_ALL;
}