Skip to content

Commit

Permalink
Merge pull request #45 from cibr-jyu/fix-action-log-propagation-problem
Browse files Browse the repository at this point in the history
Try fixing action.log propagation problem
  • Loading branch information
teekuningas authored Mar 25, 2024
2 parents 5133c0e + f44ef95 commit b496c1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meggie/mainWindowMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"
)
Expand All @@ -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
Expand Down

0 comments on commit b496c1f

Please sign in to comment.