avoid some uses of Sprintf for loglines

This commit is contained in:
Shivaram Lingamneni
2018-12-31 11:33:42 -05:00
parent ec4f1c189a
commit c2b2559ab4
6 changed files with 11 additions and 11 deletions

View File

@@ -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