From c6e3dbf887495806046d611007ae480fedc17841 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Wed, 31 Jan 2024 11:00:37 +0200 Subject: [PATCH] scripts/linking/rescan.lua: fix log access The log object should be used with : in order to make sure that the log handler has the correct topic in context. --- src/scripts/linking/rescan.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/linking/rescan.lua b/src/scripts/linking/rescan.lua index 09079ac3..96e4b453 100644 --- a/src/scripts/linking/rescan.lua +++ b/src/scripts/linking/rescan.lua @@ -70,7 +70,7 @@ function unhandleLinkable (si, om) return end - log.info (si, string.format ("unhandling item %d", si_id)) + log:info (si, string.format ("unhandling item %d", si_id)) -- iterate over all the links in the graph and -- remove any links associated with this item @@ -89,7 +89,7 @@ function unhandleLinkable (si, om) end silink:remove () - log.info (silink, "... link removed") + log:info (silink, "... link removed") end end @@ -125,7 +125,7 @@ function handleLinkables (source) -- check if we need to link this node at all local autoconnect = cutils.parseBool (si_props ["node.autoconnect"]) if not autoconnect then - log.debug (si, tostring (si_props ["node.name"]) .. " does not need to be autoconnected") + log:debug (si, tostring (si_props ["node.name"]) .. " does not need to be autoconnected") goto skip_linkable end