mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 20:38:06 +00:00
Add more information to the logs of transient error (#1082)
This commit is contained in:
@ -240,13 +240,14 @@ def notify_ado(
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
logging.info(
|
notification_info = (
|
||||||
"notify ado: job_id:%s task_id:%s container:%s filename:%s",
|
"job_id:%s task_id:%s container:%s filename:%s",
|
||||||
report.job_id,
|
report.job_id,
|
||||||
report.task_id,
|
report.task_id,
|
||||||
container,
|
container,
|
||||||
filename,
|
filename,
|
||||||
)
|
)
|
||||||
|
logging.info("notify ado: %s", notification_info)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ado = ADO(container, filename, config, report)
|
ado = ADO(container, filename, config, report)
|
||||||
@ -261,7 +262,7 @@ def notify_ado(
|
|||||||
|
|
||||||
if not fail_task_on_transient_error and is_transient(err):
|
if not fail_task_on_transient_error and is_transient(err):
|
||||||
raise AdoNotificationException(
|
raise AdoNotificationException(
|
||||||
"transient ADO notification failure"
|
f"transient ADO notification failure {notification_info}"
|
||||||
) from err
|
) from err
|
||||||
else:
|
else:
|
||||||
fail_task(report, err)
|
fail_task(report, err)
|
||||||
|
Reference in New Issue
Block a user