Logging tidy-up, IDE inspection fixes

This commit is contained in:
Ian Renton
2026-08-15 07:42:38 +01:00
parent 9cd6d9c177
commit bff5b79f8f
40 changed files with 128 additions and 125 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ class LiveDataCache:
try:
callback(value)
except Exception:
logging.error("Listener raised an exception for key %s", key, exc_info=True)
logging.exception("Listener raised an exception for key %s", key)
def get(self, key, default=None):
@@ -71,7 +71,7 @@ class LiveDataCache:
try:
self._disk_cache.set("snapshot", data)
except Exception as e:
logging.error("Failed to write snapshot to %s", self._snapshot_dir, e, exc_info=True)
logging.exception("Failed to write snapshot to %s", self._snapshot_dir, e)
def _load_snapshot(self):
data = self._disk_cache.get("snapshot")