diff --git a/app/celery/celery.py b/app/celery/celery.py index 76f92a809..23b318692 100644 --- a/app/celery/celery.py +++ b/app/celery/celery.py @@ -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) ) ) diff --git a/app/config.py b/app/config.py index a29e654b9..133d5e1b1 100644 --- a/app/config.py +++ b/app/config.py @@ -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']