fix22
This commit is contained in:
@@ -31,7 +31,7 @@ def setup_logging(text_edit_widget: QTextEdit):
|
||||
"""
|
||||
root_logger = logging.getLogger()
|
||||
# 设置日志级别,可以根据需要调整 (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
||||
root_logger.setLevel(logging.INFO)
|
||||
root_logger.setLevel(logging.DEBUG)
|
||||
|
||||
# 清除现有的处理器,防止重复输出(如果多次调用此函数)
|
||||
for handler in root_logger.handlers[:]:
|
||||
|
||||
Reference in New Issue
Block a user