From 04bef6091e83e2ec78a8c4230e1530e62e54366c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 13 Feb 2022 23:43:45 +0100 Subject: [PATCH] Make system level errors from the HTTP fetchers easier to find (#421) --- changedetectionio/update_worker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index 441eb9ee..84993d80 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -136,6 +136,8 @@ class update_worker(threading.Thread): except Exception as e: # Catch everything possible here, so that if a worker crashes, we don't lose it until restart! print("!!!! Exception in update_worker !!!\n", e) + self.app.logger.error("Exception reached processing watch UUID: %s - %s", uuid, str(e)) + self.datastore.update_watch(uuid=uuid, update_obj={'last_error': str(e)}) finally: # Always record that we atleast tried