Fix connection close log

Printf arguments weren't passed to the logger.
This commit is contained in:
Atsushi Watanabe
2023-08-07 15:11:41 +09:00
parent 21d18f5c2d
commit efff4c4457
+1 -1
View File
@@ -32,7 +32,7 @@ func closeConnAndLog(c io.Closer, log logging.LeveledLogger, msg string, args ..
return
}
log.Warnf(msg)
log.Warnf(msg, args...)
if err := c.Close(); err != nil {
log.Warnf("Failed to close connection: %v", err)
}