From 43c29e12ab6555815c0e26b06999d8fb8e3cf9b2 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Fri, 10 Mar 2023 01:14:28 +0800 Subject: =?UTF-8?q?=E2=99=BF=EF=B8=8F=20=E9=99=8D=E4=BD=8E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=81=87=E6=8A=A5=E9=94=99=E6=97=B6=E7=9A=84=E6=81=90?= =?UTF-8?q?=E6=85=8C=E5=87=A0=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index a4089b7..4504b07 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -115,12 +115,15 @@ async def _(bot: Bot, event, matcher: Matcher, exception: Optional[Exception]): except BaseBotException as err: prompt = err.prompt or err.__class__.__name__ track_id = err.track_id + log.warning(f"BotException: {prompt}") except ActionFailed as err: prompt = "请参考协议端输出" track_id = _save_error(prompt, format_exc()) + log.warning(f"ActionFailed: {prompt}") except Exception as err: prompt = "UnkErr " + err.__class__.__name__ track_id = _save_error(prompt, format_exc()) + log.warning(f"Exception: {prompt}") log.error(f"Error Track ID: {track_id}") -- cgit v1.2.3