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