Skip to content

Commit b2910e0

Browse files
Add __str__ method to QueueSendResult
This commit introduces
1 parent c991baf commit b2910e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kubemq/queues/queues_send_result.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ def decode(cls, result: SendQueueMessageResult) -> "QueueSendResult":
6262

6363
class Config:
6464
arbitrary_types_allowed = True
65+
def __str__(self):
66+
return (
67+
f"QueueSendResult: id={self.id}, sent_at={self.sent_at}, expired_at={self.expired_at}, "
68+
f"delayed_to={self.delayed_to}, is_error={self.is_error}, error={self.error}"
69+
)

0 commit comments

Comments
 (0)