Better log

This commit is contained in:
bel
2019-09-11 20:53:46 -06:00
parent 8a5a5d0cf4
commit b3e49e2848
2 changed files with 2 additions and 17 deletions

View File

@@ -84,9 +84,10 @@ func (f *Feed) Pull() error {
continue
}
if ok := regexp.MustCompile(f.TitleFilter).MatchString(item.Title); !ok {
log.Println("[Pull]", "Skipping bad titled item")
log.Printf("[Pull] Skipping bad titled item: %v doesn't match /%v/", item.Title, f.TitleFilter)
continue
}
log.Printf("[Pull] Saving item %v for %v /%v/", f.Key, f.URL, f.TitleFilter)
if err := item.save(f.Key); err != nil {
log.Println("[Pull]", err)
continue