]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/log level names: disregard SYSLOG_NAMES
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 28 Jul 2021 17:29:51 +0000 (19:29 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 29 Jul 2021 09:44:47 +0000 (11:44 +0200)
commitfc692f2c27f593fa70237bf2413daa0cd6bf2d7d
tree191a2b63b3a4338edca41439f98d9924202711dc
parent8e430cc78e285949fc4bfae06382cba80cb0beed
lib/log level names: disregard SYSLOG_NAMES

It's a non-standard feature of syslog.h and I don't think it's worth
the trouble.

We didn't really utilize it; someone would have to #define it,
and moreover we would get into problems if this wasn't being done
the same on all places including log.h.
Making the names adapt to the platform would also mean that
config files and docs wouldn't be portable.

Also make kr_log_level2name() return const.
lib/log.c
lib/log.h