From f44ef95716055f3363ddc391e8bf06948f8d4898 Mon Sep 17 00:00:00 2001 From: teekuningas Date: Mon, 25 Mar 2024 09:09:24 +0200 Subject: [PATCH] Try fixing action.log propagation problem --- meggie/mainWindowMain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meggie/mainWindowMain.py b/meggie/mainWindowMain.py index d067425d..73f40859 100644 --- a/meggie/mainWindowMain.py +++ b/meggie/mainWindowMain.py @@ -382,10 +382,10 @@ def _setup_loggers(self): # setup logger for informative messages ui_logger = logging.getLogger("ui_logger") + ui_logger.propagate = False formatter = logging.Formatter( "Meggie: %(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S" ) - ui_logger.handlers = [] stream_handler = logging.StreamHandler() stream_handler.setFormatter(formatter) @@ -394,6 +394,7 @@ def _setup_loggers(self): # setup logger for mne error messages mne_logger = logging.getLogger("mne") + mne_logger.propagate = False formatter = logging.Formatter( "MNE: %(asctime)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S" ) @@ -406,6 +407,7 @@ def _setup_loggers(self): # setup action logger action_logger = logging.getLogger("action_logger") + action_logger.propagate = False action_logger.handlers = [] # setup file handler