From 0c8c565ab00bc22e9e7752dbdfba15cceaaaaecc Mon Sep 17 00:00:00 2001 From: sabaimran Date: Tue, 7 May 2024 06:48:18 -0700 Subject: [PATCH] Don't include the whole stack trace for an integrity error --- src/khoj/database/adapters/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/database/adapters/__init__.py b/src/khoj/database/adapters/__init__.py index 10a8d146..1a217414 100644 --- a/src/khoj/database/adapters/__init__.py +++ b/src/khoj/database/adapters/__init__.py @@ -460,7 +460,7 @@ class ProcessLockAdapters: func(**kwargs) success = True except IntegrityError as e: - logger.error(f"⚠️ Unable to create the process lock for {func} with {operation}: {e}", exc_info=True) + logger.error(f"⚠️ Unable to create the process lock for {func} with {operation}: {e}") success = False except Exception as e: logger.error(f"🚨 Error executing {func} with {operation} process lock: {e}", exc_info=True)