mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 05:39:12 +00:00
Don't include the whole stack trace for an integrity error
This commit is contained in:
@@ -460,7 +460,7 @@ class ProcessLockAdapters:
|
|||||||
func(**kwargs)
|
func(**kwargs)
|
||||||
success = True
|
success = True
|
||||||
except IntegrityError as e:
|
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
|
success = False
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"🚨 Error executing {func} with {operation} process lock: {e}", exc_info=True)
|
logger.error(f"🚨 Error executing {func} with {operation} process lock: {e}", exc_info=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user