Skip to content

CIP-1674 log consumer logs every message twice

Previously, the talondx-logconsumer was logging each message twice, causing the talondx-logconsumer-001-0.log file to be filled with redundant logs. Setting logger.propagate to false fixed this issue, however there are still 2 log messages that get duplicated:

1|2023-12-09T01:22:47.643Z|INFO|MainThread|update_logging_handlers|base_device.py#367|tango-device:mid_csp_cbf/talondx_log_consumer/001|Logging targets set to ['console::cout']

1|2023-12-09T01:22:47.644Z|DEBUG|MainThread|_init_logging|base_device.py#499|tango-device:mid_csp_cbf/talondx_log_consumer/001|Logger initialised

These lines are logged by the consumer device base class while initializing. Due to the fact that we can't change that base class, it has been decided to live with these first two lines being duplicated, since the duplication issue is fixed once the device spins up the LogComponentManager

Edited by Sheldon Downie

Merge request reports