Re-enable ping prints

This commit is contained in:
Kai Vogelgesang 2020-10-09 17:52:43 +02:00
parent 3773599248
commit 4cdbc80613

View File

@ -33,9 +33,12 @@ d_s = Diff(BLUE, YELLOW)
def handle(tag: str, data: bytes): def handle(tag: str, data: bytes):
msg = data.decode().strip() msg = data.decode().strip()
if msg.startswith("0c") or msg.startswith("0a"): if msg.startswith("0c") or msg.startswith("0a"):
# ping, ignore if tag == "server":
return print(f"{YELLOW}{msg}{RESET}")
if tag == "server": else:
d_s.consume(msg) print(f"{RED}{msg}{RESET}")
else: else:
d_c.consume(msg) if tag == "server":
d_s.consume(msg)
else:
d_c.consume(msg)