Skip to content

Commit

Permalink
Merge pull request #12809 from hexfusion/fix-logger
Browse files Browse the repository at this point in the history
raft: correctly pass arguments to Logger.Panic
  • Loading branch information
ptabor authored Mar 28, 2021
2 parents 78f1a05 + 6064a0e commit 8ce82ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (l *DefaultLogger) Fatalf(format string, v ...interface{}) {
}

func (l *DefaultLogger) Panic(v ...interface{}) {
l.Logger.Panic(v)
l.Logger.Panic(v...)
}

func (l *DefaultLogger) Panicf(format string, v ...interface{}) {
Expand Down

0 comments on commit 8ce82ff

Please sign in to comment.