Better log
parent
8a5a5d0cf4
commit
b3e49e2848
|
|
@ -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