diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-08-07 23:43:40 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-08-07 23:43:40 +0300 |
commit | 1c4307b653046ecb483629ee5094a9d7a765eb69 (patch) | |
tree | a7a9bcb66936177ecba62d52c27921ef47b9a384 | |
parent | ea8c9c02c69778d3053207d3e8a0c1c8d8d711e2 (diff) |
basic logging
-rwxr-xr-x | main.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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': |