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

Commit 25de6d3

Browse files
committed
Add __repr__ for UserIpCommand
1 parent 7aa5b84 commit 25de6d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

synapse/replication/tcp/commands.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,12 @@ def to_line(self) -> str:
389389
)
390390
)
391391

392+
def __repr__(self):
393+
return (
394+
f"UserIpCommand({self.user_id!r}, .., {self.ip!r}, "
395+
f"{self.user_agent!r}, {self.device_id!r}, {self.last_seen})"
396+
)
397+
392398

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

0 commit comments

Comments
 (0)