notify: add some more monitoring

This commit is contained in:
jaseg 2020-01-23 11:48:45 +01:00
parent 6c2bf701f6
commit dbef4d09de

View file

@ -150,6 +150,9 @@ def notify(route_name):
with db as conn:
conn.execute('INSERT OR REPLACE INTO heartbeats_seen VALUES (?, ?, 0)', (route_name, int(time.time())))
elif scope == 'error':
print(f'Device error: {kwargs}')
return 'success'
@uwsgidecorators.timer(60)