From 577fcdaec0214a77a93cc1ffc3e5827859c8cec9 Mon Sep 17 00:00:00 2001 From: Dominique Pfister Date: Wed, 6 Nov 2024 15:54:06 +0100 Subject: [PATCH] fix: log stack in debug level (AWS) --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0dfbe8c6..c59d7733 100644 --- a/src/index.js +++ b/src/index.js @@ -213,7 +213,8 @@ async function run(request, ctx) { if (e instanceof TooManyImagesError) { return error(`error fetching resource at ${sourceUrl}: ${e.message}`, 409); } - /* c8 ignore next 2 */ + /* c8 ignore next 3 */ + log.debug(e.stack); return error(`error fetching resource at ${sourceUrl}: ${e.message}`, 500); } finally { await mediaHandler?.fetchContext.reset();