Update logging in DataManager to use debug level for message skipping and insertion confirmation

- Changed log level from info to debug for skipping messages to Kafka topic.
- Added debug log for successful message insertion into MongoDB collection.
This commit is contained in:
vitor-aignosi
2025-07-03 14:13:00 -03:00
parent b0bbf4cf03
commit 28866ac9c8

View File

@@ -178,7 +178,7 @@ class DataManager:
)
self.logger.error(trace)
else:
self.logger.info(f"Skipping message to topic {topic}: {data}")
self.logger.debug(f"Skipping message to topic {topic}: {data}")
try:
collection = self.mongo_db[topic]
@@ -189,6 +189,8 @@ class DataManager:
"inserted_at": datetime.now(timezone.utc),
}
)
self.logger.debug(
f"Message inserted into MongoDB collection {topic}: {data}")
except Exception as e:
trace = traceback.format_exc()