From 9027d8a95453b4564635e83400eca5c677aa1a56 Mon Sep 17 00:00:00 2001 From: Carlo Strub Date: Mon, 5 Jun 2017 13:40:17 +0000 Subject: [PATCH] log when done learning --- sisyphus/sisyphus.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sisyphus/sisyphus.go b/sisyphus/sisyphus.go index 745853b..44aa0f3 100644 --- a/sisyphus/sisyphus.go +++ b/sisyphus/sisyphus.go @@ -149,10 +149,11 @@ func main() { log.WithFields(log.Fields{ "err": err, "mail": val.Key, - }).Error("Cannot learn mail") + }).Warning("Cannot learn mail") } } } + log.Info("All mails learned") // Classify whenever a mail arrives in "new" watcher, err := fsnotify.NewWatcher()