From efff4c4457280b22d18b86f4fc3fa71205689caa Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Mon, 7 Aug 2023 14:59:18 +0900 Subject: [PATCH] Fix connection close log Printf arguments weren't passed to the logger. --- gather.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gather.go b/gather.go index 80dfeaf..f93e6c1 100644 --- a/gather.go +++ b/gather.go @@ -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) }