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 "")