Sfoglia il codice sorgente

fix: xunfei ws error log

zhayujie 2 anni fa
parent
commit
a64d7c42b1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      bot/xunfei/xunfei_spark_bot.py

+ 1 - 1
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关闭的处理