feat: improve logging

This commit is contained in:
Tomáš Mládek 2023-08-27 18:38:16 +02:00
parent 6ebcf74365
commit 24d1ec7acd

View file

@ -145,7 +145,8 @@ while (true) {
publishedAt: item.snippet?.publishedAt, publishedAt: item.snippet?.publishedAt,
})); }));
logger.debug("Found %d videos: %j", videos.length, videos); logger.debug("Found %d videos...", videos.length);
logger.debug("%j", videos);
if (videos.length === 0) { if (videos.length === 0) {
logger.warn("Got no videos!"); logger.warn("Got no videos!");