From dbef4d09deba4e9a94b747f04cc40dd823edc0d4 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 23 Jan 2020 11:48:45 +0100 Subject: notify: add some more monitoring --- notification_proxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notification_proxy.py b/notification_proxy.py index d30a23d..fcef50f 100644 --- a/notification_proxy.py +++ b/notification_proxy.py @@ -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) -- cgit