From eccfd944a9e26a2b4fa6e7a89bd01d3e1321b5dc Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 24 May 2024 21:31:36 +0100 Subject: [PATCH] fix: log orphan id here since it doesn't make it to seq? --- .../src/lib/score-import/framework/orphans/orphans.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/server/src/lib/score-import/framework/orphans/orphans.ts b/server/src/lib/score-import/framework/orphans/orphans.ts index 4788f27f5..166b6bfb0 100644 --- a/server/src/lib/score-import/framework/orphans/orphans.ts +++ b/server/src/lib/score-import/framework/orphans/orphans.ts @@ -99,10 +99,13 @@ export async function ReprocessOrphan( // this is impossible to test, so we're going to ignore it /* istanbul ignore next */ if (!("failureType" in err)) { - logger.error(`Converter function ${orphan.importType} returned unexpected error.`, { - err, - orphan, - }); + logger.error( + `Converter function ${orphan.importType} returned unexpected error. ID=${orphan.orphanID}`, + { + err, + orphan, + } + ); // throw this higher up, i guess. throw err;