Skip to content

Commit

Permalink
Visually tag filtered state events in log output
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBearAK committed Oct 6, 2024
1 parent 02a2fe7 commit 029bfcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wlroots-dev/query_cosmic_topl_mgmt_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ def handle_state_change(self, handle, states_bytes):
# Filter out the all-zeroes state (reset event?) before converting
if states_bytes == b'':
print()
print(f"Received empty bytes value state event, ignoring: {states_bytes}")
print(f">>>> Received empty bytes value state event, ignoring: {states_bytes}")
return
elif states_bytes == b'\x00\x00\x00\x00':
print()
print(f"Received all-zeroes 4-byte state event, ignoring: {states_bytes}")
print(f">>>> Received all-zeroes 4-byte state event, ignoring: {states_bytes}")
return

# Process states_bytes as an array of 4-byte (32-bit) integers
Expand Down

0 comments on commit 029bfcc

Please sign in to comment.