Fix: URL spacing for terminal clickability, DEBUG level from config
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user