mirror of
https://github.com/GSA/notifications-api.git
synced 2026-04-30 22:29:51 -04:00
fix dead code warning
This commit is contained in:
@@ -480,10 +480,11 @@ def make_task(app):
|
||||
)
|
||||
)
|
||||
|
||||
def on_failure(self, exc, task_id, args, kwargs, einfo=None):
|
||||
def on_failure(self, exc, task_id, args, kwargs, einfo):
|
||||
|
||||
# enables request id tracing for these logs
|
||||
with self.app_context():
|
||||
app.logger.debug(f"einfo is {einfo}")
|
||||
app.logger.exception(
|
||||
"Celery task {task_name} (queue: {queue_name}) failed".format(
|
||||
task_name=self.name,
|
||||
|
||||
Reference in New Issue
Block a user