diff options
author | Robin Jarry <robin@jarry.cc> | 2023-06-04 21:52:51 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-12 11:23:08 +0200 |
commit | 13e356c4a4a296edea4245fb8850aeba49ae1851 (patch) | |
tree | 4bef7eef06ea554b82c16cace41eb9b9c5109459 /worker/imap/observer.go | |
parent | 68e1809b3c602f2119505df78eea3d1d93854f83 (diff) | |
download | aerc-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.go | 2 |
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) } |