Skip to content

Commit

Permalink
Merge pull request #8 from skip-pay/decrease_level_for_exception_log
Browse files Browse the repository at this point in the history
Decerase level for exception log
rubickcz authored Nov 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 4e6efef + bbb2490 commit e8f3f8a
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
@@ -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),

0 comments on commit e8f3f8a

Please sign in to comment.