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

This commit is contained in:
2026-06-10 19:51:07 +08:00
parent 57009c7f43
commit 7e682190ab
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ class SenSuFramework:
tui_service.show_message(f"当前日志级别 {logLevel}\n", "info")
tui_service.show_message("====================================\n", "info")
tui_service.show_message(f"当前API配置地址", "debug")
tui_service.show_message(f"地址:http://{internet_service.http_host}:{internet_service.http_port}", "debug")
tui_service.show_message(f"地址: http://{internet_service.http_host}:{internet_service.http_port}", "debug")
tui_service.show_message("====================================\n", "debug")
tui_service.show_message(f"🌐 Web 面板配置地址: http://{internet_service.http_host}:{internet_service.http_port}{panel_path}", "info")
+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(