diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-06-20 20:17:27 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-06-20 20:23:52 +0200 |
commit | 9ab7ff204430b125db3b6ca368af104d20e793ed (patch) | |
tree | a75082d2d2104aefa6620c2ff95d40ee96767e8a /internal/feed/state.go | |
parent | c2a14778510e7166eaeb7b8cb61eac798b96b467 (diff) | |
download | feed2imap-go-9ab7ff204430b125db3b6ca368af104d20e793ed.tar.gz feed2imap-go-9ab7ff204430b125db3b6ca368af104d20e793ed.tar.bz2 feed2imap-go-9ab7ff204430b125db3b6ca368af104d20e793ed.zip |
Fix/add debug messages
Diffstat (limited to 'internal/feed/state.go')
-rw-r--r-- | internal/feed/state.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/feed/state.go b/internal/feed/state.go index 3828e37..5831ff4 100644 --- a/internal/feed/state.go +++ b/internal/feed/state.go @@ -103,9 +103,12 @@ func (feed *Feed) filterItems() []item { } if res { + if log.IsDebug() { + log.Debugf("Filter '%s' matches for item %s", feed.ItemFilter, printItem(item.Item)) + } items = append(items, item) } else if log.IsDebug() { // printItem is not for free - log.Debugf("Filter '%s' matches for item %s, removing.", feed.ItemFilter, printItem(item.Item)) + log.Debugf("Filter '%s' does not match for item %s", feed.ItemFilter, printItem(item.Item)) } } return items |