Reduced number of critical log levels.

This commit is contained in:
Valentin Bartenev
2018-03-05 17:32:50 +03:00
parent f2090bce21
commit 912a49c609
47 changed files with 403 additions and 534 deletions

View File

@@ -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';
/*