Skip to content

Commit

Permalink
feat(gateway): resolved a minor inconvience in logging regarding to s…
Browse files Browse the repository at this point in the history
…hard blocking
  • Loading branch information
cop-discord committed Nov 16, 2024
1 parent f8e5fb8 commit f297dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def ack(self) -> None:
self._last_ack = ack_time
self.latency = ack_time - self._last_send
if self.latency > 10:
_log.warning(self.behind_msg % self.shard_id, self.latency)
_log.warning(f"Can't keep up, shard ID {self.shard_id} websocket is {self.latency:.1f}s behind.")


class VoiceKeepAliveHandler(KeepAliveHandler):
Expand Down

0 comments on commit f297dce

Please sign in to comment.