diff options
author | Robin Jarry <robin@jarry.cc> | 2023-06-04 21:57:49 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-12 11:23:11 +0200 |
commit | 2c751a27a3c144274bf4091eb13b1eeee89e6230 (patch) | |
tree | 254f78cb7aab830d4162ea82b436c0320ad3f370 /worker/notmuch/eventhandlers.go | |
parent | 19fda33bf211e7ed556364419e3be957312cd4ae (diff) | |
download | aerc-2c751a27a3c144274bf4091eb13b1eeee89e6230.tar.gz |
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 <robin@jarry.cc>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'worker/notmuch/eventhandlers.go')
-rw-r--r-- | worker/notmuch/eventhandlers.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |