Skip to content

Commit

Permalink
fix(log): change log level to Error
Browse files Browse the repository at this point in the history
Update the log level from Info to Error when fetching a feed URL to indicate an error has occurred.
  • Loading branch information
NOBLES5E committed Aug 4, 2023
1 parent 38a3a3a commit 89c3b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -110,7 +110,7 @@ func fetchFeed(url string, results chan *gofeed.Item, recordDirPath string, cont
defer cancel()
feed, err := fp.ParseURLWithContext(url, ctx)
if err != nil {
log.Infof("error fetching %s: %s", url, err)
log.Errorf("error fetching %s: %s", url, err)
return
}
// FetchedUntil is the largest published timestamp of all items
Expand Down

0 comments on commit 89c3b7d

Please sign in to comment.