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

This commit is contained in:
John Smith 2023-12-05 00:20:55 +08:00
parent d79738441c
commit 165b4bf90a

View File

@ -265,9 +265,11 @@ class GameHeartbeatPublicHandler(_OpenLiveHandlerBase):
) )
raise tornado.web.HTTPError(500) raise tornado.web.HTTPError(500)
except BusinessError as e: except BusinessError as e:
logger.info( # 因为B站的BUG这里在9点和10点的高峰期会经常报重复请求的错误但是不影响功能先屏蔽掉
'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e if e.code != 4004:
) logger.info(
'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e
)
self.res = e.data self.res = e.data
self.write(self.res) self.write(self.res)
@ -302,9 +304,11 @@ class GameHeartbeatPrivateHandler(_OpenLiveHandlerBase):
) )
raise tornado.web.HTTPError(500) raise tornado.web.HTTPError(500)
except BusinessError as e: except BusinessError as e:
logger.info( # 因为B站的BUG这里在9点和10点的高峰期会经常报重复请求的错误但是不影响功能先屏蔽掉
'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e if e.code != 4004:
) logger.info(
'client=%s game heartbeat failed, game_id=%s, error: %s', self.request.remote_ip, game_id, e
)
self.res = e.data self.res = e.data
self.write(self.res) self.write(self.res)