Skip to content

Commit

Permalink
Merge pull request IBM#2054 from utrack/fix-debuglog-format
Browse files Browse the repository at this point in the history
logger: fix debug logs' formatting directives
  • Loading branch information
dnwe authored Nov 6, 2021
2 parents 31a5d23 + 8d55a30 commit 3a200f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sarama.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ type StdLogger interface {
type debugLogger struct{}

func (d *debugLogger) Print(v ...interface{}) {
Logger.Print(v)
Logger.Print(v...)
}
func (d *debugLogger) Printf(format string, v ...interface{}) {
Logger.Printf(format, v)
Logger.Printf(format, v...)
}
func (d *debugLogger) Println(v ...interface{}) {
Logger.Println(v)
Logger.Println(v...)
}

// DebugLogger is the instance of a StdLogger that Sarama writes more verbose
Expand Down

0 comments on commit 3a200f6

Please sign in to comment.