Skip to content

Commit

Permalink
Decerase level for exception log
Browse files Browse the repository at this point in the history
  • Loading branch information
rubickcz committed Nov 26, 2023
1 parent 4e6efef commit bbb2490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def on_task_failure(self, task_id, args, kwargs, exc, einfo):
finally:
self.request.run_logger.close()

logger.error(
# The exception is logged separately. This log is complementary, so it's OK to use warning only.
logger.warning(
f'Task with name {self.name} raised exception',
extra={
'einfo': str(einfo),
Expand Down

0 comments on commit bbb2490

Please sign in to comment.