Better log
parent
db79a43e95
commit
6ce1197f72
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue