aboutsummaryrefslogtreecommitdiff
path: root/notification_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'notification_proxy.py')
-rw-r--r--notification_proxy.py3
1 files changed, 3 insertions, 0 deletions
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)