Skip to content

Commit 192d1da

Browse files
committed
Implement better logging for bind registration
1 parent 82c690a commit 192d1da

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

main.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,12 @@ async def press_key(key: str) -> None:
3131

3232
for bind in config["bindings"]:
3333
msg_type = bind.get("msg_type")
34-
print(msg_type)
3534
key = bind.get("key")
36-
print(key)
3735
channel = bind.get("channel")
38-
print(channel)
3936
value = bind.get("value")
40-
print(value)
4137
action = bind.get("action")
42-
print(action)
43-
print("\n")
4438

39+
print(f"Registerd binding:\n msg_type: {msg_type}, key: {key}, channel: {channel}, value: {value}, action: {action}")
4540
router.register(msg_type, key, channel, value, lambda _msg, action=action: press_key(action))
4641

4742
print("Listening...")

0 commit comments

Comments
 (0)