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

Add more information to the logs of transient error #1082

Merged
merged 2 commits into from
Jul 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)