diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-01 21:39:37 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-01 21:39:37 +0200 |
commit | 04a4897b69f9a10bdea27fb1133bcab71c40b687 (patch) | |
tree | dbe438199c33439d7731f9fc9e5d565ce0b6418b /internal/feed/parse.go | |
parent | 9990266256b8859b3d500ff0fc0fcee6e1e64193 (diff) | |
download | feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.tar.gz feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.tar.bz2 feed2imap-go-04a4897b69f9a10bdea27fb1133bcab71c40b687.zip |
Config option 'max-failures'
Diffstat (limited to 'internal/feed/parse.go')
-rw-r--r-- | internal/feed/parse.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/feed/parse.go b/internal/feed/parse.go index fe3374a..1ce6cda 100644 --- a/internal/feed/parse.go +++ b/internal/feed/parse.go @@ -65,6 +65,10 @@ func handleFeed(feed *Feed) { err := parseFeed(feed) if err != nil { - log.Error(err) + if feed.cached.Failures() >= feed.Global.MaxFailures { + log.Error(err) + } else { + log.Print(err) + } } } |