From 31fcf27c5aadba3064ab78f405096d392d209690 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 21 Apr 2024 22:18:57 +0200 Subject: [PATCH] handle new log levels logging output --- log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.cpp b/log.cpp index c9986cc..38bc47c 100644 --- a/log.cpp +++ b/log.cpp @@ -134,7 +134,7 @@ void dolog(const log_level_t ll, const char *fmt, ...) #endif char *ts_str = nullptr; - const char *const ll_names[] = { "debug ", "info ", "warning", "error " }; + const char *const ll_names[] = { "emerg ", "alert ", "crit ", "error ", "warning", "notice ", "info ", "debug ", "none " }; asprintf(&ts_str, "%04d-%02d-%02d %02d:%02d:%02d.%06d] %s ", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, int(now % 1000000),