From 00360be038d088821c6edcdcaba0186bcc8b8966 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Wed, 4 Dec 2024 11:31:04 +0000 Subject: [PATCH] feat: Log task run errors at ERROR level --- task_processor/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task_processor/processor.py b/task_processor/processor.py index c150e68..93d5436 100644 --- a/task_processor/processor.py +++ b/task_processor/processor.py @@ -99,7 +99,7 @@ def _run_task(task: typing.Union[Task, RecurringTask]) -> typing.Tuple[Task, Tas task_run.finished_at = timezone.now() task.mark_success() except Exception as e: - logger.warning( + logger.error( "Failed to execute task '%s'. Exception was: %s", task.task_identifier, str(e),