diff options
Diffstat (limited to 'worker/notmuch/eventhandlers.go')
-rw-r--r-- | worker/notmuch/eventhandlers.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/worker/notmuch/eventhandlers.go b/worker/notmuch/eventhandlers.go index 3daabda3..4eec1f60 100644 --- a/worker/notmuch/eventhandlers.go +++ b/worker/notmuch/eventhandlers.go @@ -3,6 +3,8 @@ package notmuch +import "git.sr.ht/~rjarry/aerc/logging" + func (w *worker) handleNotmuchEvent(et eventType) error { switch ev := et.(type) { case *updateDirCounts: @@ -16,7 +18,7 @@ func (w *worker) handleUpdateDirCounts(ev eventType) error { for name, query := range w.nameQueryMap { info, err := w.gatherDirectoryInfo(name, query) if err != nil { - w.w.Logger.Printf("could not gather DirectoryInfo: %v\n", err) + logging.Errorf("could not gather DirectoryInfo: %v", err) continue } w.w.PostMessage(info, nil) |