From bed3b62e0d75b9f381528b658586d79b2dbbb1ac Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Thu, 7 Mar 2024 10:37:34 -0500 Subject: [PATCH] scripts: improve linking logs --- src/scripts/linking/get-filter-from-target.lua | 4 +++- src/scripts/linking/prepare-link.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scripts/linking/get-filter-from-target.lua b/src/scripts/linking/get-filter-from-target.lua index e9cd77e0..04d9e8b0 100644 --- a/src/scripts/linking/get-filter-from-target.lua +++ b/src/scripts/linking/get-filter-from-target.lua @@ -53,10 +53,12 @@ SimpleEventHook { local filter_target = futils.get_filter_from_target (target_direction, target) if filter_target ~= nil then target = filter_target + log:info (si, "... got filter for given target") elseif filter_target == nil and not si_flags.has_defined_target then filter_target = futils.get_filter_from_target (target_direction, nil) if filter_target ~= nil then target = filter_target + log:info (si, "... got default filter for given target") end end @@ -71,7 +73,7 @@ SimpleEventHook { if target_picked then log:info (si, - string.format ("... filter target picked: %s (%s), can_passthrough:%s", + string.format ("... target picked: %s (%s), can_passthrough:%s", tostring (target.properties ["node.name"]), tostring (target.properties ["node.id"]), tostring (can_passthrough))) diff --git a/src/scripts/linking/prepare-link.lua b/src/scripts/linking/prepare-link.lua index 06b9a833..60ed06d2 100644 --- a/src/scripts/linking/prepare-link.lua +++ b/src/scripts/linking/prepare-link.lua @@ -35,7 +35,7 @@ SimpleEventHook { -- Check if item is linked to proper target, otherwise re-link if si_flags.peer_id then if target and si_flags.peer_id == target.id then - log:debug (si, "... already linked to proper target") + log:info (si, "... already linked to proper target") -- Check this also here, in case in default targets changed if Settings.get_boolean ("linking.follow-default-target") and