From df99067ee3fc6e8ea327009838574a971529550a Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 11 Oct 2022 16:38:41 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=A0=E9=99=A4=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E6=97=B6=20websocket=20=E9=87=8D=E8=BF=9E?= =?UTF-8?q?=E7=9A=84=20redis=20=E6=96=AD=E5=BC=80=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/utils/connection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/utils/connection.py b/apps/common/utils/connection.py index 381f29443..9d1e7fd9d 100644 --- a/apps/common/utils/connection.py +++ b/apps/common/utils/connection.py @@ -53,7 +53,9 @@ class Subscription: error(msg, item) logger.error('Subscribe handler handle msg error: {}'.format(e)) except Exception as e: - logger.error('Consume msg error: {}'.format(e)) + # 正常的 websocket 断开时, redis 会断开连接,避免日志太多 + # logger.error('Consume msg error: {}'.format(e)) + pass try: complete()