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) }