From 39dd89db785716ce53707498fcc05fc95b1cf8c1 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Wed, 15 Sep 2021 16:43:53 +0200 Subject: [PATCH] lua: use notice level for log() 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 | 4 ++++ daemon/lua/sandbox.lua.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 761d46a8f..24813d2b4 100644 --- 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) ================================ diff --git a/daemon/lua/sandbox.lua.in b/daemon/lua/sandbox.lua.in index 8eebbfab7..cd9ec25b6 100644 --- a/daemon/lua/sandbox.lua.in +++ b/daemon/lua/sandbox.lua.in @@ -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 -- 2.47.3