From cebc117efbcdf35df12abc41ef1ee3130a6d452b Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 26 May 2025 11:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E6=B0=94=E6=94=AF=E6=8C=81=E7=A7=81?= =?UTF-8?q?=E8=81=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/dify/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dify/main.py b/plugins/dify/main.py index 53eacdc..6589236 100644 --- a/plugins/dify/main.py +++ b/plugins/dify/main.py @@ -158,7 +158,7 @@ class DifyPlugin(MessagePluginInterface): return False, "未获取到回复" except Exception as e: - self.LOG.error(f"处理Dify聊天请求出错: {e}") + self.LOG.exception(f"处理Dify聊天请求出错: {e}") client_msg_id, create_time, new_msg_id = await bot.send_text_message((roomid if roomid else sender), "❌未能获取到回复,请稍后再试", sender) @@ -218,7 +218,7 @@ class DifyPlugin(MessagePluginInterface): return False, "未获取到回复" except Exception as e: - self.LOG.error(f"处理Dify聊天请求出错: {e}") + self.LOG.exception(f"处理Dify聊天请求出错: {e}") client_msg_id, create_time, new_msg_id = await bot.send_text_message((roomid if roomid else sender), f"❌请求出错:{str(e)}", sender if roomid else "")