From f091047cc57f40c2fd38ae801ab8fdafd6a638c2 Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 5 Feb 2024 23:46:28 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=B8=B4=E6=97=B6=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E5=BF=83=E8=B7=B3=E8=AF=B7=E6=B1=82=E9=87=8D=E5=A4=8D=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E7=9A=84=E6=8A=A5=E9=94=99"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 165b4bf90a64d4c5ad2ac835c933dea9a914036e. --- api/open_live.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/api/open_live.py b/api/open_live.py index e0788e1..add10f6 100644 --- a/api/open_live.py +++ b/api/open_live.py @@ -265,11 +265,9 @@ class GameHeartbeatPublicHandler(_OpenLiveHandlerBase): ) raise tornado.web.HTTPError(500) except BusinessError as e: - # 因为B站的BUG,这里在9点和10点的高峰期会经常报重复请求的错误,但是不影响功能,先屏蔽掉 - if e.code != 4004: - logger.info( - 'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e - ) + logger.info( + 'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e + ) self.res = e.data self.write(self.res) @@ -304,11 +302,9 @@ class GameHeartbeatPrivateHandler(_OpenLiveHandlerBase): ) raise tornado.web.HTTPError(500) except BusinessError as e: - # 因为B站的BUG,这里在9点和10点的高峰期会经常报重复请求的错误,但是不影响功能,先屏蔽掉 - if e.code != 4004: - logger.info( - 'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e - ) + logger.info( + 'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e + ) self.res = e.data self.write(self.res)