From 42f5092bb9c1c19d62568920eb74596d0ebfd3c3 Mon Sep 17 00:00:00 2001 From: Haibersut Date: Sun, 5 Mar 2023 01:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E6=97=A5=E8=AE=B0?= =?UTF-8?q?=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将错误信息调整为warning --- pkg/qqbot/filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/qqbot/filter.py b/pkg/qqbot/filter.py index 81f4abe6..31ebabd1 100644 --- a/pkg/qqbot/filter.py +++ b/pkg/qqbot/filter.py @@ -62,7 +62,7 @@ class ReplyFilter: if "error_code" in response_dict: error_msg = response_dict.get("error_msg") - logging.info(f"百度云判定出错,错误信息:{error_msg}") + logging.warning(f"百度云判定出错,错误信息:{error_msg}") conclusion = f"百度云判定出错,错误信息:{error_msg}\n以下是原消息:{message}" else: conclusion = response_dict["conclusion"] @@ -70,7 +70,7 @@ class ReplyFilter: logging.info(f"百度云判定结果:{conclusion}") return message else: - logging.info(f"百度云判定结果:{conclusion}") + logging.warning(f"百度云判定结果:{conclusion}") conclusion = inappropriate_message_tips # 返回百度云审核结果 return conclusion