diff --git a/metax/gui/metax_gui/generic_thread.py b/metax/gui/metax_gui/generic_thread.py index 2556383..1ea9e0e 100644 --- a/metax/gui/metax_gui/generic_thread.py +++ b/metax/gui/metax_gui/generic_thread.py @@ -81,7 +81,7 @@ def __init__(self, function, *args, **kwargs): # 创建 LoggingHandler,并连接到 text_written 信号 log_handler = LoggingHandler(self.stream_out.text_written) - log_handler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)s - %(message)s")) + log_handler.setFormatter(logging.Formatter("%(levelname)s: %(message)s")) logging.getLogger().addHandler(log_handler) self.thread.start()