From 24e921f126db9e9de4050570a163b99ad5028274 Mon Sep 17 00:00:00 2001 From: jinsoo Date: Tue, 26 Aug 2025 00:35:59 +0900 Subject: [PATCH] fix: improve error logging in image metadata retrieval --- .changeset/light-friends-pay.md | 5 +++++ .../notion-to-utils/src/client/utils/getImageMetadata.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/light-friends-pay.md diff --git a/.changeset/light-friends-pay.md b/.changeset/light-friends-pay.md new file mode 100644 index 0000000..9dac5fe --- /dev/null +++ b/.changeset/light-friends-pay.md @@ -0,0 +1,5 @@ +--- +"notion-to-utils": patch +--- + +error log modification diff --git a/packages/notion-to-utils/src/client/utils/getImageMetadata.ts b/packages/notion-to-utils/src/client/utils/getImageMetadata.ts index 4236e13..22a2584 100644 --- a/packages/notion-to-utils/src/client/utils/getImageMetadata.ts +++ b/packages/notion-to-utils/src/client/utils/getImageMetadata.ts @@ -18,7 +18,7 @@ async function getImageMetadata(url: string): Promise<{ aspectRatio: result.height > 0 ? result.width / result.height : 1, }; } catch (error) { - console.error('이미지 메타데이터 추출 실패:', error); + console.error('이미지 메타데이터 추출 실패:', url, error); return null; } }