mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 16:31:15 -05:00
Fixed typo in call, should be self.name not Task.name.
Task.name always returned None.
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