refactor(antipromptinjector): 将每次输入都记录的 info 级别调至 debug

避免大量冗余信息在常规日志级别输出,保持日志整洁
This commit is contained in:
minecraft1024a
2025-08-19 21:18:56 +08:00
parent 3bef6f4bab
commit 7a9845b8a4

View File

@@ -212,7 +212,7 @@ class AntiPromptInjector:
# 1. 检查系统是否启用
if not self.config.enabled:
return ProcessResult.ALLOWED, None, "反注入系统未启用"
logger.info(f"开始处理消息: {message.processed_plain_text}")
logger.debug(f"开始处理消息: {message.processed_plain_text}")
# 2. 检查用户是否被封禁
if self.config.auto_ban_enabled: