From 4e666ce5dbb27a43088bdc2a75f1dd1697ed5754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 27 Aug 2023 18:38:16 +0200 Subject: [PATCH] feat: improve logging --- index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index 8d8fa34..15738c3 100644 --- a/index.ts +++ b/index.ts @@ -145,9 +145,10 @@ while (true) { publishedAt: item.snippet?.publishedAt, })); - logger.debug("Found %d videos: %j", videos.length, videos); - - if (videos.length === 0) { + if (videos.length > 0) { + logger.info("Found %d videos...", videos.length); + logger.debug("Videos = `%j`", videos); + } else { logger.warn("Got no videos!"); }