Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add __repr__ for UserIpCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Mar 24, 2022
1 parent 7aa5b84 commit 25de6d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synapse/replication/tcp/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ def to_line(self) -> str:
)
)

def __repr__(self):
return (
f"UserIpCommand({self.user_id!r}, .., {self.ip!r}, "
f"{self.user_agent!r}, {self.device_id!r}, {self.last_seen})"
)


class RemoteServerUpCommand(_SimpleCommand):
"""Sent when a worker has detected that a remote server is no longer
Expand Down

0 comments on commit 25de6d3

Please sign in to comment.