]> 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>
Wed, 7 Jul 2021 13:45:26 +0000 (15:45 +0200)
commitb6fefb3232a57b9a938ac892a4187fbc614746b4
tree92b5520ff86ebfbe24ec54ed1a94886a4e305ed2
parent274ac0f5fc793b7ca5de81767b429fe8f8cd8064
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