Add debug logging to is_available() for better diagnostics

This commit is contained in:
2026-04-11 03:37:13 +02:00
parent bb5c5ce396
commit e517b25360
2 changed files with 4 additions and 8 deletions
+3 -8
View File
@@ -160,15 +160,10 @@ class Mem0LocalMemoryProvider(MemoryProvider):
return "mem0-local"
def is_available(self) -> bool:
cfg = _load_config()
base_url = cfg.get("base_url", "")
if not base_url:
return False
# Try to reach the server
try:
client = LocalMem0Client(base_url)
return client.health()
except Exception:
return self._get_client().health()
except Exception as e:
logger.debug("Mem0 availability check failed: %s", e)
return False
def save_config(self, values: dict, hermes_home):