Skip to content

Commit

Permalink
Remove celery task time execution log
Browse files Browse the repository at this point in the history
  • Loading branch information
jimleroyer committed Nov 9, 2023
1 parent 1c7ec5f commit 9b6fa23
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 @@ -18,7 +18,7 @@ class NotifyTask(Task):

def on_success(self, retval, task_id, args, kwargs):
elapsed_time = time.time() - self.start
app.logger.info("{task_name} took {time}".format(task_name=self.name, time="{0:.4f}".format(elapsed_time)))
app.logger.debug("{task_name} took {time}".format(task_name=self.name, time="{0:.4f}".format(elapsed_time)))

def on_failure(self, exc, task_id, args, kwargs, einfo):
# ensure task will log exceptions to correct handlers
Expand Down

0 comments on commit 9b6fa23

Please sign in to comment.