refactor(antipromptinjector): 将每次输入都记录的 info 级别调至 debug
避免大量冗余信息在常规日志级别输出,保持日志整洁
This commit is contained in:
committed by
Windpicker-owo
parent
7d13d0b6c2
commit
4a3fc57e6f
@@ -212,7 +212,7 @@ class AntiPromptInjector:
|
|||||||
# 1. 检查系统是否启用
|
# 1. 检查系统是否启用
|
||||||
if not self.config.enabled:
|
if not self.config.enabled:
|
||||||
return ProcessResult.ALLOWED, None, "反注入系统未启用"
|
return ProcessResult.ALLOWED, None, "反注入系统未启用"
|
||||||
logger.info(f"开始处理消息: {message.processed_plain_text}")
|
logger.debug(f"开始处理消息: {message.processed_plain_text}")
|
||||||
|
|
||||||
# 2. 检查用户是否被封禁
|
# 2. 检查用户是否被封禁
|
||||||
if self.config.auto_ban_enabled:
|
if self.config.auto_ban_enabled:
|
||||||
|
|||||||
Reference in New Issue
Block a user