diff options
author | jaseg <code@jaseg.net> | 2020-01-23 11:48:45 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-01-23 11:48:45 +0100 |
commit | d11c4bd67534e61a0479c9179a4ea98b83be58ea (patch) | |
tree | 5fa75f64e41dfbc624dd6f454ce5451e84f64d28 | |
parent | a4eba0f69960fc40325c087dc03b9513f657b1e6 (diff) | |
download | gerbolyze-d11c4bd67534e61a0479c9179a4ea98b83be58ea.tar.gz gerbolyze-d11c4bd67534e61a0479c9179a4ea98b83be58ea.tar.bz2 gerbolyze-d11c4bd67534e61a0479c9179a4ea98b83be58ea.zip |
notify: add some more monitoring
-rw-r--r-- | gerboweb/deploy/notification_proxy.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |