aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)