]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Convert RemoteLog{Response,}Action to structured logging
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 16 Jan 2026 12:31:07 +0000 (13:31 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 19 Jan 2026 10:01:46 +0000 (11:01 +0100)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-lua-actions.cc

index db8f8d103369249e57b8a3a7f8b8c9044d9292f6..c5a9d437b35b632f4787bd9ed586c16e2b7d931d 100644 (file)
@@ -301,7 +301,8 @@ void setupLuaActions(LuaContext& luaCtx)
     }
 
     if (config.useServerID && !config.serverID.empty()) {
-      warnlog("useServerID and serverID set in RemoteLogAction configuration. value for serverID will not be used");
+      SLOG(warnlog("useServerID and serverID set in RemoteLogAction configuration. value for serverID will not be used"),
+           dnsdist::logging::getTopLogger("RemoteLogAction")->info(Logr::Warning, "useServerID and serverID set in RemoteLogAction configuration. value for serverID will not be used"));
     }
 
     if (metas) {
@@ -367,7 +368,8 @@ void setupLuaActions(LuaContext& luaCtx)
     }
 
     if (config.useServerID && !config.serverID.empty()) {
-      warnlog("useServerID and serverID set in RemoteLogResponseAction configuration. value for serverID will not be used");
+      SLOG(warnlog("useServerID and serverID set in RemoteLogResponseAction configuration. value for serverID will not be used"),
+           dnsdist::logging::getTopLogger("RemoteLogResponseAction")->info(Logr::Warning, "useServerID and serverID set in RemoteLogResponseAction configuration. value for serverID will not be used"));
     }
 
     if (metas) {