Skip to content

Commit

Permalink
chore: improve linksBuilder logging (#2785)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexP11223 authored Oct 7, 2021
1 parent 0d936a9 commit 73eaa88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/fetch-links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ function addNewLinks(store: Store, links: Link[], series: Series) {
const newLinks = links.filter(link => !existingUrls.has(link.url));

if (newLinks.length === 0) {
logger.debug(Print.message('NO NEW LINKS FOUND', series, store, true));
return;
}

logger.debug(
Print.message(`FOUND ${newLinks.length} STORE LINKS`, series, store, true)
Print.message(`FOUND ${newLinks.length} NEW LINKS`, series, store, true)
);
logger.debug(JSON.stringify(newLinks, null, 2));

Expand Down

0 comments on commit 73eaa88

Please sign in to comment.