aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/list.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-06-04 21:52:51 +0200
committerRobin Jarry <robin@jarry.cc>2023-06-12 11:23:08 +0200
commit13e356c4a4a296edea4245fb8850aeba49ae1851 (patch)
tree4bef7eef06ea554b82c16cace41eb9b9c5109459 /worker/imap/list.go
parent68e1809b3c602f2119505df78eea3d1d93854f83 (diff)
downloadaerc-13e356c4a4a296edea4245fb8850aeba49ae1851.tar.gz
imap: use named logger
Use the worker's logging functions to have all imap 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/imap/list.go')
-rw-r--r--worker/imap/list.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/imap/list.go b/worker/imap/list.go
index 7a8fc17c..a3469c72 100644
--- a/worker/imap/list.go
+++ b/worker/imap/list.go
@@ -12,7 +12,7 @@ import (
func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) {
mailboxes := make(chan *imap.MailboxInfo)
- log.Tracef("Listing mailboxes")
+ imapw.worker.Tracef("Listing mailboxes")
done := make(chan interface{})
go func() {
@@ -114,7 +114,7 @@ func (imapw *IMAPWorker) handleSearchDirectory(msg *types.SearchDirectory) {
}, nil)
}
- log.Tracef("Executing search")
+ imapw.worker.Tracef("Executing search")
criteria, err := parseSearch(msg.Argv)
if err != nil {
emitError(err)