From 1c4307b653046ecb483629ee5094a9d7a765eb69 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 7 Aug 2021 23:43:40 +0300 Subject: basic logging --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index b455457..d9537e8 100755 --- a/main.py +++ b/main.py @@ -42,10 +42,12 @@ async def handle_client(reader, writer): data = None if request == 'on': await relay_set(ON) + logger.info('set on') data = 'ok' elif request == 'off': await relay_set(OFF) + logger.info('set off') data = 'ok' elif request == 'get': -- cgit v1.2.3