From 2c751a27a3c144274bf4091eb13b1eeee89e6230 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 4 Jun 2023 21:57:49 +0200 Subject: notmuch: use named logger Use the worker's logging functions to have all notmuch related messages prefixed by the account name. Signed-off-by: Robin Jarry Tested-by: Inwit --- worker/notmuch/eventhandlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'worker/notmuch/eventhandlers.go') diff --git a/worker/notmuch/eventhandlers.go b/worker/notmuch/eventhandlers.go index 996187fa..ca92d7eb 100644 --- a/worker/notmuch/eventhandlers.go +++ b/worker/notmuch/eventhandlers.go @@ -7,7 +7,6 @@ import ( "fmt" "strconv" - "git.sr.ht/~rjarry/aerc/log" "git.sr.ht/~rjarry/aerc/worker/types" ) @@ -24,7 +23,7 @@ func (w *worker) handleUpdateDirCounts() error { if w.store != nil { folders, err := w.store.FolderMap() if err != nil { - log.Errorf("failed listing directories: %v", err) + w.w.Errorf("failed listing directories: %v", err) return err } for name := range folders { -- cgit