mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +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
|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user