log failed requests in DEBUG mode

This commit is contained in:
fdev31 2023-04-27 23:57:53 +02:00
parent e2d996f1e0
commit 3eb95e09a2

View file

@ -43,7 +43,10 @@ async def hyprctl(command):
await ctl_writer.wait_closed()
if DEBUG:
print("<<<", resp)
return resp == b"ok" * (len(resp) // 2)
r = resp == b"ok" * (len(resp) // 2)
if DEBUG and not r:
print(f"FAILED {resp}")
return r
async def get_focused_monitor_props():