]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lua: use notice level for log()
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 15 Sep 2021 14:43:53 +0000 (16:43 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 20 Sep 2021 08:34:09 +0000 (10:34 +0200)
By default, notice level is set. Thus, if users want to use log() in the
same way as pre-5.4, they'd have to increase the log level. This bumps
the log level of log() function to keep the same behavior.

NEWS
daemon/lua/sandbox.lua.in

diff --git a/NEWS b/NEWS
index 761d46a8f7761336b2de9bc9b9a601c1caf09a07..24813d2b4281ff6f81e5e60d621824844313c2d5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,10 @@ Improvements
 - dns64 module: allow disabling based on client address (#368, !1201)
 - dns64 module: allow configuring AAAA subnets not allowed in answer (!1201)
 
+Bugfixes
+--------
+- lua: log() output is visible with default log level again (!1208)
+
 
 Knot Resolver 5.4.1 (2021-08-19)
 ================================
index 8eebbfab7633f679228934e18f7b9ad470c94dde..cd9ec25b6f091702e17e42b33c19a35e5c1c35c4 100644 (file)
@@ -69,7 +69,7 @@ function log_debug(grp, fmt, ...)
 end
 
 function log(fmt, ...)
-       log_info(ffi.C.LOG_GRP_MODULE, fmt, ...)
+       log_notice(ffi.C.LOG_GRP_MODULE, fmt, ...)
 end
 
 -- Resolver bindings