Revert "临时屏蔽心跳请求重复请求的报错"

This reverts commit 165b4bf90a.
This commit is contained in:
John Smith 2024-02-05 23:46:28 +08:00
parent c657a368ae
commit f091047cc5

View File

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