From 912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 5 Mar 2018 17:32:50 +0300 Subject: Reduced number of critical log levels. --- src/nxt_log.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/nxt_log.c') diff --git a/src/nxt_log.c b/src/nxt_log.c index cd2b5d70..992c3205 100644 --- a/src/nxt_log.c +++ b/src/nxt_log.c @@ -20,10 +20,8 @@ nxt_log_t nxt_main_log = { }; -nxt_str_t nxt_log_levels[8] = { - nxt_string("emerg"), +nxt_str_t nxt_log_levels[6] = { nxt_string("alert"), - nxt_string("crit"), nxt_string("error"), nxt_string("warn"), nxt_string("notice"), @@ -102,7 +100,7 @@ nxt_log_handler(nxt_uint_t level, nxt_log_t *log, const char *fmt, ...) (void) nxt_write_console(nxt_stderr, msg, p - msg); - if (level <= NXT_LOG_ALERT) { + if (level == NXT_LOG_ALERT) { *(p - NXT_LINEFEED_SIZE) = '\0'; /* -- cgit