Skip to content

feat: truncate large payloads in RoborockMessage __repr__ - #1

Closed
allenporter wants to merge 1 commit into
testing-libraryfrom
truncate-large-payloads
Closed

allenporter wants to merge 1 commit into
testing-libraryfrom
truncate-large-payloads

Conversation

@allenporter

Copy link
Copy Markdown
Owner

This PR introduces a custom __repr__ implementation for RoborockMessage that truncates payloads (bytes, bytearray, str) exceeding 1024 bytes (defined by MAX_PAYLOAD_REPR_LEN). This prevents large map binary messages from bloating and clogging the debug logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant