Ensure that component logs don't propagate to the root

This commit is contained in:
Dennis Potter 2021-05-16 12:17:52 +02:00
parent 8d86010a0a
commit a59668de87
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -27,6 +27,7 @@ class Component():
stream_log_level=config['stream_log_level'], stream_log_level=config['stream_log_level'],
file_log_level=config['file_log_level'], file_log_level=config['file_log_level'],
file_name=config['file_log_location']) file_name=config['file_log_location'])
self.logger.propagate = False
def get_ports(self, port_type: str): def get_ports(self, port_type: str):
self.logger.debug("Return port list") self.logger.debug("Return port list")