clarify logs and gitignore and skipping vendor from now on

Former-commit-id: c8b61b58379d768f04e1593c2a77cf429407cf62
This commit is contained in:
bel
2019-06-22 16:34:34 -06:00
parent 35b3ff2c2d
commit 71778e30c1
10 changed files with 19 additions and 17 deletions

View File

@@ -74,20 +74,20 @@ func (f *Feed) Pull() error {
for _, i := range gofeed.Items {
item, err := newItem(i, f.ContentFilter)
if err != nil {
log.Println(err)
log.Println("[Pull]", err)
continue
}
itemTSs = append(itemTSs, &item.TS)
if item.TS.Before(f.Updated) {
log.Println("Skipping old item")
log.Println("[Pull]", "Skipping old item")
continue
}
if ok := regexp.MustCompile(f.TitleFilter).MatchString(item.Title); !ok {
log.Println("Skipping bad titled item")
log.Println("[Pull]", "Skipping bad titled item")
continue
}
if err := item.save(f.Key); err != nil {
log.Println(err)
log.Println("[Pull]", err)
continue
}
}

View File

@@ -24,7 +24,7 @@ func (rss *RSS) Run() error {
return nil
case i := <-rss.items:
if err := rss.update(i); err != nil {
log.Println(err)
log.Println("[rss.Run]", err)
}
}
}