From 950440f5ef5094fbaaf236ea2a5b7dec49c80471 Mon Sep 17 00:00:00 2001 From: Yonggang Liu Date: Wed, 3 Jul 2024 10:51:45 -0400 Subject: [PATCH] HARMONY-1806: Update error logging when handling STAC parsing exception. --- .../backends/workflow-orchestration/work-item-updates.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/harmony/app/backends/workflow-orchestration/work-item-updates.ts b/services/harmony/app/backends/workflow-orchestration/work-item-updates.ts index d0fb43737..a7b3aa014 100644 --- a/services/harmony/app/backends/workflow-orchestration/work-item-updates.ts +++ b/services/harmony/app/backends/workflow-orchestration/work-item-updates.ts @@ -564,9 +564,13 @@ export async function preprocessWorkItem( durationMs = new Date().getTime() - resultStartTime; logger.debug('timing.HWIUWJI.getResultItemSize.end', { durationMs }); } catch (e) { - errorMessage = 'Could not get result item file size'; + errorMessage = 'Could not get result item file size from output STAC'; logger.error(errorMessage); - logger.error(e); + logger.error('Caught exception:', { + message: e.message, + name: e.name, + stack: e.stack, + }); status = WorkItemStatus.FAILED; } const result: WorkItemPreprocessInfo = {