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.
This commit is contained in:
George Kiagiadakis 2024-01-31 11:00:37 +02:00
parent 5581a9c2b7
commit c6e3dbf887

View file

@ -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