mirror of
https://github.com/jeremyd/ergo.git
synced 2026-05-13 17:58:36 -07:00
avoid some uses of Sprintf for loglines
This commit is contained in:
@@ -367,7 +367,7 @@ func authErrorToMessage(server *Server, err error) (msg string) {
|
||||
if err == errAccountDoesNotExist || err == errAccountUnverified || err == errAccountInvalidCredentials {
|
||||
msg = err.Error()
|
||||
} else {
|
||||
server.logger.Error("internal", fmt.Sprintf("sasl authentication failure: %v", err))
|
||||
server.logger.Error("internal", "sasl authentication failure", err.Error())
|
||||
msg = "Unknown"
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user