mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-29 22:11:52 -05:00
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:
@@ -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)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user