From 886bcd3c9be9b875cbf25c0ea6da98ee3da3b8c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 11:41:56 +0000 Subject: [PATCH] fix: include exc_info in log_task_progress debug message Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- app/utils/logging.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/utils/logging.py b/app/utils/logging.py index 00480d03..6c8a201f 100644 --- a/app/utils/logging.py +++ b/app/utils/logging.py @@ -140,4 +140,6 @@ def log_task_progress( db.commit() except Exception: # Database errors in logging should never crash the calling task - logging.getLogger(__name__).debug(f"Failed to log task progress to database: {step_name} - {status}") + logging.getLogger(__name__).debug( + f"Failed to log task progress to database: {step_name} - {status}", exc_info=True + )