Skip to content

Commit

Permalink
HARMONY-1806: Update error logging when handling STAC parsing exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygliuvt committed Jul 3, 2024
1 parent c3863de commit 950440f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 950440f

Please sign in to comment.