log when done learning

master
Carlo Strub 7 years ago
parent 87b51ebee0
commit 9027d8a954

@ -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()

Loading…
Cancel
Save