summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-08-07 23:43:40 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-08-07 23:43:40 +0300
commit1c4307b653046ecb483629ee5094a9d7a765eb69 (patch)
treea7a9bcb66936177ecba62d52c27921ef47b9a384 /main.py
parentea8c9c02c69778d3053207d3e8a0c1c8d8d711e2 (diff)
basic logging
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
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':