mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
turned off debug logging
This commit is contained in:
parent
6326a83434
commit
b745fd915b
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user