Browse Source

raft: fix logger Panic variadic parameter

"# github.com/coreos/etcd/raft
raft/logger.go:117: missing ... in args forwarded to print-like function"

New parameter check got added the golang to check the function parameter
https://github.com/golang/go/commit/c00603607511701ecc9f56fd82ac528ecf6b8fc6#diff-8fa5b0d6191706747ef5773f895781c9
sudeesh john 7 years ago
parent
commit
e07d19e549
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/logger.go

+ 1 - 1
raft/logger.go

@@ -114,7 +114,7 @@ func (l *DefaultLogger) Fatalf(format string, v ...interface{}) {
 }
 }
 
 
 func (l *DefaultLogger) Panic(v ...interface{}) {
 func (l *DefaultLogger) Panic(v ...interface{}) {
-	l.Logger.Panic(v)
+	l.Logger.Panic(v..)
 }
 }
 
 
 func (l *DefaultLogger) Panicf(format string, v ...interface{}) {
 func (l *DefaultLogger) Panicf(format string, v ...interface{}) {