From 1bcbe409966a5b22229a1a52c356e0ccaf4bb69c Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:16:59 +0800 Subject: [PATCH] fix: slow logging --- src/utils/note.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/note.ts b/src/utils/note.ts index 0d8e72d..f7fa32b 100644 --- a/src/utils/note.ts +++ b/src/utils/note.ts @@ -420,7 +420,7 @@ async function copyEmbeddedImagesInHTML( targetNote?: Zotero.Item, refNotes: Zotero.Item[] = [], ) { - ztoolkit.log("parseEmbeddedImagesInHTML", html, targetNote, refNotes); + ztoolkit.log("parseEmbeddedImagesInHTML", html, targetNote?.getNoteTitle(), refNotes.length); if (!targetNote) { return html; } @@ -433,7 +433,7 @@ async function copyEmbeddedImagesInHTML( return html; } - ztoolkit.log(attachments); + ztoolkit.log(attachments.length, "attachments found in refNotes"); const doc = new DOMParser().parseFromString(html, "text/html");