Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Add more information to the logs of transient error (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
chkeita authored Jul 16, 2021
1 parent 3305732 commit 152dd19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api-service/__app__/onefuzzlib/notifications/ado.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 152dd19

Please sign in to comment.