debug: log raw message content to journal
Validate and Test / validate-patches (push) Failing after 13s

This commit is contained in:
2026-06-24 04:03:01 -07:00
parent 515617ac94
commit 89da97c637
+10 -3
View File
@@ -104,10 +104,17 @@ def main():
pass
while b";" in buf:
msg, buf = buf.split(b";", 1)
msg = msg.decode().strip()
raw_msg, buf = buf.split(b";", 1)
msg = raw_msg.decode().strip()
parts = msg.split()
if len(parts) >= 3 and parts[0] == "midi":
if not parts:
continue
if parts[0] != "midi":
print(f"[viz] skipping: {msg!r}", flush=True)
continue
if len(parts) < 3:
print(f"[viz] too short: {parts}", flush=True)
continue
status = int(parts[1])
note = int(parts[2])
vel = int(parts[3]) if len(parts) >= 4 else 0