turned off debug logging

This commit is contained in:
Adam Saudagar 2022-01-30 19:58:30 +05:30
parent 6326a83434
commit b745fd915b

View File

@ -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))