Skip to content

Commit 63f518f

Browse files
committed
Include receiver name in its string representation
The string representation of a receiver is used in logging, and without this, it is impossible to identify which receiver is meant, from looking at the logs. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 877eedf commit 63f518f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/channels/_broadcast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def close(self) -> None:
515515

516516
def __str__(self) -> str:
517517
"""Return a string representation of this receiver."""
518-
return f"{self._channel}:{type(self).__name__}"
518+
return f"{self._channel}:{type(self).__name__}:{self._name}"
519519

520520
def __repr__(self) -> str:
521521
"""Return a string representation of this receiver."""

0 commit comments

Comments
 (0)