PICARD-2651: fix duplicate messages on console

Set logging.propagate to False for `main_logger`
This commit is contained in:
Laurent Monin
2023-06-03 23:22:53 +02:00
parent e7e80aa1ba
commit 3a845fc53f

View File

@@ -138,6 +138,9 @@ class TailLogger(QtCore.QObject):
main_logger = logging.getLogger('main')
# do not pass logging messages to the handlers of ancestor loggers (PICARD-2651)
main_logger.propagate = False
main_logger.setLevel(logging.INFO)