Skip to content

Commit

Permalink
feat: Log task run errors at ERROR level
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Dec 4, 2024
1 parent c43af41 commit 00360be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task_processor/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 00360be

Please sign in to comment.