From 152dd190b784013f1af53792208e38be7d798f28 Mon Sep 17 00:00:00 2001 From: Cheick Keita Date: Fri, 16 Jul 2021 14:52:06 -0700 Subject: [PATCH] Add more information to the logs of transient error (#1082) --- src/api-service/__app__/onefuzzlib/notifications/ado.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api-service/__app__/onefuzzlib/notifications/ado.py b/src/api-service/__app__/onefuzzlib/notifications/ado.py index aa9a0b1c90..cd71aa99af 100644 --- a/src/api-service/__app__/onefuzzlib/notifications/ado.py +++ b/src/api-service/__app__/onefuzzlib/notifications/ado.py @@ -240,13 +240,14 @@ def notify_ado( ) return - logging.info( - "notify ado: job_id:%s task_id:%s container:%s filename:%s", + notification_info = ( + "job_id:%s task_id:%s container:%s filename:%s", report.job_id, report.task_id, container, filename, ) + logging.info("notify ado: %s", notification_info) try: ado = ADO(container, filename, config, report) @@ -261,7 +262,7 @@ def notify_ado( if not fail_task_on_transient_error and is_transient(err): raise AdoNotificationException( - "transient ADO notification failure" + f"transient ADO notification failure {notification_info}" ) from err else: fail_task(report, err)