style(log): 移除日志输出中的 emoji 符号

为了在不同终端和环境中保持日志输出的整洁与一致性,统一移除了日志信息中的 emoji 符号。

此举旨在避免潜在的渲染问题,并使日志更易于程序化解析和人工阅读。同时,对部分代码进行了微小的类型标注优化。
This commit is contained in:
minecraft1024a
2025-11-23 14:26:44 +08:00
parent dad86bcbc0
commit 7f74fc473e
7 changed files with 24 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ class APIKeyManager(Generic[T]):
try:
self.clients = [client_factory(key) for key in valid_keys]
self.client_cycle = itertools.cycle(self.clients)
logger.info(f"🔑 {service_name} 成功加载 {len(valid_keys)} 个 API 密钥")
logger.info(f" {service_name} 成功加载 {len(valid_keys)} 个 API 密钥")
except Exception as e:
logger.error(f"❌ 初始化 {service_name} 客户端失败: {e}")
self.clients = []
@@ -61,6 +61,7 @@ class APIKeyManager(Generic[T]):
if not self.is_available():
return None
assert self.client_cycle is not None
return next(self.client_cycle)
def get_client_count(self) -> int: