mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -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)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ class TaskNames(object):
|
||||
|
||||
|
||||
class Config(object):
|
||||
NOTIFY_LOG_LEVEL = 'DEBUG'
|
||||
|
||||
# URL of admin app
|
||||
ADMIN_BASE_URL = os.environ['ADMIN_BASE_URL']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user