feat: improve logging
This commit is contained in:
parent
6ebcf74365
commit
4e666ce5db
1 changed files with 4 additions and 3 deletions
7
index.ts
7
index.ts
|
@ -145,9 +145,10 @@ while (true) {
|
||||||
publishedAt: item.snippet?.publishedAt,
|
publishedAt: item.snippet?.publishedAt,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
logger.debug("Found %d videos: %j", videos.length, videos);
|
if (videos.length > 0) {
|
||||||
|
logger.info("Found %d videos...", videos.length);
|
||||||
if (videos.length === 0) {
|
logger.debug("Videos = `%j`", videos);
|
||||||
|
} else {
|
||||||
logger.warn("Got no videos!");
|
logger.warn("Got no videos!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue