Skip to content

The agent that grows with you

fix(sessions): a runtime setconfig failure on a lost-generation handle logs at ERROR

kshitijk4poord74a88c51e05
diff --git a/hermes_state.py b/hermes_state.py
index f9ff07857e4..1473225f1fa 100644
--- a/hermes_state.py
+++ b/hermes_state.py
@@ -1112,8 +1112,11 @@ class SessionDB(
try:
setconfig(flag, True)
except Exception:
- logger.debug(
- "Could not disable SQLite's close-time checkpoint on the quarantined handle for %s",
+ # No retention capability is bound on this runtime, so close() will let SQLite run the
+ # checkpoint over the newer generation: say so where an operator can see it.
+ logger.error(
+ "Could not disable SQLite's close-time checkpoint on the quarantined handle for %s; "
+ "closing it may checkpoint retired frames over the newer generation.",
self.db_path, exc_info=True,
)
return False