aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/connect.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/connect.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/connect.go')
-rw-r--r--worker/imap/connect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/imap/connect.go b/worker/imap/connect.go
index f0ed8043..84d69fe5 100644
--- a/worker/imap/connect.go
+++ b/worker/imap/connect.go
@@ -178,12 +178,12 @@ func (w *IMAPWorker) setKeepaliveParameters(conn *net.TCPConn) error {
// Max number of probes before failure
err := lib.SetTcpKeepaliveProbes(fd, w.config.keepalive_probes)
if err != nil {
- log.Errorf("cannot set tcp keepalive probes: %v", err)
+ w.worker.Errorf("cannot set tcp keepalive probes: %v", err)
}
// Wait time after an unsuccessful probe
err = lib.SetTcpKeepaliveInterval(fd, w.config.keepalive_interval)
if err != nil {
- log.Errorf("cannot set tcp keepalive interval: %v", err)
+ w.worker.Errorf("cannot set tcp keepalive interval: %v", err)
}
})
return err