]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
logging: ensure get/set_log_level behaves consistently
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 7 Jul 2021 13:45:26 +0000 (15:45 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 29 Jul 2021 09:42:32 +0000 (11:42 +0200)
commit183aff35660f018b6854aa5595d3559f10a6ec26
tree8957f29a2f71d6b2a9cd20e83ef172f18afffbd9
parent78460a1d023b89eb85c0a5ceda6ff10f57f4b9a0
logging: ensure get/set_log_level behaves consistently

Ensure both these functions return string that represents the log level.

Also avoid using printf - it'd probably break API when using map().
daemon/engine.c
lib/log.c