From 84ea539145173a88bddfdc617051f16a7aba9834 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Fri, 13 Dec 2024 15:54:04 -0300 Subject: [PATCH] chore: Log error in retry module (#10719) Should deal with the annoying `{}` log entries --- yarn-project/foundation/src/retry/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/foundation/src/retry/index.ts b/yarn-project/foundation/src/retry/index.ts index bec54c65d7d..ce05747f7da 100644 --- a/yarn-project/foundation/src/retry/index.ts +++ b/yarn-project/foundation/src/retry/index.ts @@ -64,7 +64,7 @@ export async function retry( throw err; } log.verbose(`${name} failed. Will retry in ${s}s...`); - !failSilently && log.error(err); + !failSilently && log.error(`Error while retrying ${name}`, err); await sleep(s * 1000); continue; }