handle new log levels logging output

This commit is contained in:
folkert van heusden 2024-04-21 22:18:57 +02:00
parent 9c75d94d70
commit 31fcf27c5a
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -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),