aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2020-01-23 11:48:45 +0100
committerjaseg <code@jaseg.net>2020-01-23 11:48:45 +0100
commitd11c4bd67534e61a0479c9179a4ea98b83be58ea (patch)
tree5fa75f64e41dfbc624dd6f454ce5451e84f64d28
parenta4eba0f69960fc40325c087dc03b9513f657b1e6 (diff)
downloadgerbolyze-d11c4bd67534e61a0479c9179a4ea98b83be58ea.tar.gz
gerbolyze-d11c4bd67534e61a0479c9179a4ea98b83be58ea.tar.bz2
gerbolyze-d11c4bd67534e61a0479c9179a4ea98b83be58ea.zip
notify: add some more monitoring
-rw-r--r--gerboweb/deploy/notification_proxy.py3
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)