From b745fd915bc3baaafeb2f7902d226c2cfd767737 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Sun, 30 Jan 2022 19:58:30 +0530 Subject: [PATCH] turned off debug logging --- fishy/gui/log_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fishy/gui/log_config.py b/fishy/gui/log_config.py index 0a93050..d304666 100644 --- a/fishy/gui/log_config.py +++ b/fishy/gui/log_config.py @@ -1,5 +1,6 @@ +import logging import typing -from logging import StreamHandler +from logging import StreamHandler, Formatter if typing.TYPE_CHECKING: from . import GUI @@ -11,6 +12,7 @@ class GUIStreamHandler(StreamHandler): self.gui = gui def emit(self, record): + self.setLevel(logging.INFO) msg = self.format(record) self.gui.call_in_thread(lambda: _write_to_console(self.gui, msg))