diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-19 15:05:08 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-19 15:05:08 +0200 |
commit | 0b09b3a77b4784e63419114e4c43baf1f3ae2562 (patch) | |
tree | c9c0e12b33cc51833b65bd39566223394d29dc90 /internal/parse | |
parent | e8c715f6b267d65cb0694704b395bcc236f74195 (diff) | |
download | feed2imap-go-0b09b3a77b4784e63419114e4c43baf1f3ae2562.tar.gz feed2imap-go-0b09b3a77b4784e63419114e4c43baf1f3ae2562.tar.bz2 feed2imap-go-0b09b3a77b4784e63419114e4c43baf1f3ae2562.zip |
Rename util.go to log.go. Add verbose mode
Diffstat (limited to 'internal/parse')
-rw-r--r-- | internal/parse/parse.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/parse/parse.go b/internal/parse/parse.go index a4112d9..ddf1f0f 100644 --- a/internal/parse/parse.go +++ b/internal/parse/parse.go @@ -3,14 +3,13 @@ package parse import ( ctxt "context" "fmt" - "log" "sync" "time" "github.com/mmcdole/gofeed" "github.com/Necoro/feed2imap-go/internal/config" - "github.com/Necoro/feed2imap-go/internal/util" + "github.com/Necoro/feed2imap-go/internal/log" ) func context() (ctxt.Context, ctxt.CancelFunc) { @@ -33,7 +32,7 @@ func handleFeed(feed *config.Feed, wg *sync.WaitGroup) { log.Printf("Fetching %s from %s", feed.Name, feed.Url) if err := parseFeed(feed); err != nil { - util.Error(err) + log.Error(err) } } |