log some info
This commit is contained in:
parent
9a77bd7ed1
commit
4819e5e80a
1 changed files with 3 additions and 0 deletions
3
service
3
service
|
@ -30,6 +30,9 @@ while True:
|
||||||
try:
|
try:
|
||||||
if status["state"]["open"]:
|
if status["state"]["open"]:
|
||||||
last_open = datetime.now(utc)
|
last_open = datetime.now(utc)
|
||||||
|
log.info('afra is open')
|
||||||
|
else:
|
||||||
|
log.info('afra is closed')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
log.exception("open status was not in state json")
|
log.exception("open status was not in state json")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue