feat: improve logging

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

View file

@ -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!");
}