Skip to content

Commit

Permalink
fix: log stack in debug level (AWS)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominique-pfister committed Nov 6, 2024
1 parent ab7bab4 commit 577fcda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 577fcda

Please sign in to comment.