Fix: URL spacing for terminal clickability, DEBUG level from config

This commit is contained in:
AskaEth committed 2026-06-10 19:51:07 +08:00
1 parent 57009c7f43
commit 7e682190ab
2 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -51,7 +51,8 @@ class LogDisplay(Static):
# 添加我们的自定义处理器
custom_handler = self.TUILogHandler(self)
custom_handler.setLevel(logging.DEBUG) # 捕获所有级别的日志
log_level = getattr(logging, self.log_level.upper(), logging.DEBUG) if hasattr(self, log_level) else logging.DEBUG
custom_handler.setLevel(log_level) # 从配置读取日志级别
# 强制使用包含彩色级别的格式器
formatter = self.ColoredFormatter(