From 9693a2e9d70b9430574281a8afc9579baabad33d Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Fri, 20 Dec 2024 03:51:11 +0000 Subject: [PATCH] Update hivemind_core/service.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- hivemind_core/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hivemind_core/service.py b/hivemind_core/service.py index 09cdc74..962c737 100644 --- a/hivemind_core/service.py +++ b/hivemind_core/service.py @@ -136,7 +136,8 @@ def open(self): loop=self.protocol.loop, ) if self.db is None: - LOG.error("HiveMind database not initialized, can't validate connection") + LOG.error("Database connection not initialized. Please ensure database configuration is correct.") + LOG.debug(f"Client {client.peer} connection attempt failed due to missing database connection") self.protocol.handle_invalid_key_connected(self.client) self.close() return