aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/observer.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/observer.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/observer.go')
-rw-r--r--worker/imap/observer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/imap/observer.go b/worker/imap/observer.go
index 9ad311dd..8bc07c93 100644
--- a/worker/imap/observer.go
+++ b/worker/imap/observer.go
@@ -152,5 +152,5 @@ func (o *observer) emit(errMsg string) {
func (o *observer) log(format string, args ...interface{}) {
msg := fmt.Sprintf(format, args...)
- log.Tracef("observer (%p) [running:%t] %s", o, o.running, msg)
+ o.worker.Tracef("observer (%p) [running:%t] %s", o, o.running, msg)
}