From a64d7c42b1a30da62279ff196665799da987ffa4 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sat, 26 Aug 2023 11:46:01 +0800 Subject: [PATCH] fix: xunfei ws error log --- bot/xunfei/xunfei_spark_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/xunfei/xunfei_spark_bot.py b/bot/xunfei/xunfei_spark_bot.py index ddda15e..eac57f5 100644 --- a/bot/xunfei/xunfei_spark_bot.py +++ b/bot/xunfei/xunfei_spark_bot.py @@ -178,7 +178,7 @@ class ReplyItem: # 收到websocket错误的处理 def on_error(ws, error): - logger.error("[XunFei] error:", error) + logger.error(f"[XunFei] error: {str(error)}") # 收到websocket关闭的处理