mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-04 23:53:59 +00:00
PICARD-2651: fix duplicate messages on console
Set logging.propagate to False for `main_logger`
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user