Skip to content

Commit

Permalink
Added filter to removeFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
k-macmillan committed Nov 29, 2024
1 parent 2b3d71b commit 6ac8387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/celery/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ def id_cleanup_logger(task_id, task, *args, **kwargs):
request_id = kwargs.get('notification_id', task_id)
for filter in current_app.logger.filters:
if filter.name == f'celery-{request_id}':
current_app.logger.removeFilter()
current_app.logger.removeFilter(filter)

0 comments on commit 6ac8387

Please sign in to comment.