From 9d510c593694c4e60b063299e5b348f4704c383f Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Tue, 8 Jul 2025 11:54:19 -0300 Subject: [PATCH] SIENTIAPDE-1110 Enhance debug logging in Ingestor class to track changes in managed tags - Added debug logging to capture changes between new and old managed tags in the Ingestor class, improving traceability of subscription management. --- ingestor/ingestor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ingestor/ingestor.py b/ingestor/ingestor.py index 572d900..528bf0f 100644 --- a/ingestor/ingestor.py +++ b/ingestor/ingestor.py @@ -258,6 +258,13 @@ class Ingestor: old_managed_tags, ) + keys = set(new_managed_tags) | set(old_managed_tags) + + changes = {k: (new_managed_tags.get(k), old_managed_tags.get(k)) + for k in keys if new_managed_tags.get(k) != old_managed_tags.get(k)} + + self.logger.debug("Changes: %s", changes) + for slot, config in new_managed_tags.items(): if slot not in old_managed_tags: self.logger.debug("Subscribing to new slot %s", slot)