refactor(log): use provided modName

This commit is contained in:
Gusted 2021-08-03 20:41:25 +02:00 committed by Max Mazurov
parent 8f30f559a1
commit 2e0162d7d2

View file

@ -69,9 +69,9 @@ type Endpoint struct {
func New(modName string, addrs []string) (module.Module, error) {
endp := &Endpoint{
addrs: addrs,
Log: log.Logger{Name: "imap"},
Log: log.Logger{Name: modName},
saslAuth: auth.SASLAuth{
Log: log.Logger{Name: "imap/sasl"},
Log: log.Logger{Name: modName + "/sasl"},
},
}