Merge pull request #1640 from alphagov/rc_update_celery_log_essage

Fixed typo in log call so that the name of the task is returned
This commit is contained in:
Leo Hemsted
2018-02-09 14:58:29 +00:00
committed by GitHub

View File

@@ -12,7 +12,7 @@ class NotifyTask(Task):
elapsed_time = time.time() - self.start
current_app.logger.info(
"{task_name} took {time}".format(
task_name=Task.name, time="{0:.4f}".format(elapsed_time)
task_name=self.name, time="{0:.4f}".format(elapsed_time)
)
)