From 6f8155a551725f859df7fbe409350088f0b22005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Tue, 11 Aug 2020 22:47:48 +0200 Subject: [PATCH] Fix missing arguments in print-like function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert-André Mauchin --- glog.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/glog.go b/glog.go index d51f901..78a14ad 100644 --- a/glog.go +++ b/glog.go @@ -50,7 +50,7 @@ func (v Verbose) Info(args ...interface{}) { // Infoln is a shim func (v Verbose) Infoln(args ...interface{}) { - s := fmt.Sprint(args) + s := fmt.Sprint(args...) zap.S().Debug(s, "\n") } @@ -71,7 +71,7 @@ func InfoDepth(depth int, args ...interface{}) { // Infoln is a shim func Infoln(args ...interface{}) { - s := fmt.Sprint(args) + s := fmt.Sprint(args...) zap.S().Info(s, "\n") } @@ -92,7 +92,7 @@ func WarningDepth(depth int, args ...interface{}) { // Warningln is a shim func Warningln(args ...interface{}) { - s := fmt.Sprint(args) + s := fmt.Sprint(args...) zap.S().Warn(s, "\n") } @@ -113,7 +113,7 @@ func ErrorDepth(depth int, args ...interface{}) { // Errorln is a shim func Errorln(args ...interface{}) { - s := fmt.Sprint(args) + s := fmt.Sprint(args...) zap.S().Error(s, "\n") } @@ -136,7 +136,7 @@ func FatalDepth(depth int, args ...interface{}) { // Fatalln is a shim func Fatalln(args ...interface{}) { - s := fmt.Sprint(args) + s := fmt.Sprint(args...) zap.S().Error(s, "\n") os.Exit(255) } @@ -161,7 +161,7 @@ func ExitDepth(depth int, args ...interface{}) { // Exitln is a shim func Exitln(args ...interface{}) { - s := fmt.Sprint(args) + s := fmt.Sprint(args...) zap.S().Error(s, "\n") os.Exit(1) }