Don't include the whole stack trace for an integrity error

This commit is contained in:
sabaimran
2024-05-07 06:48:18 -07:00
parent 9ae828cf11
commit 0c8c565ab0

View File

@@ -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)