Skip to content

Commit

Permalink
Fix kafka log message printing (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Siering authored and andrewkroh committed Apr 28, 2016
1 parent a4281c0 commit 9404abb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ https://github.com/elastic/beats/compare/v5.0.0-alpha1...master[Check the HEAD d
- Fix race when multiple outputs access the same event with logstash output manipulating event {issue}1410[1410] {pull}1428[1428]
- Seed random number generator using crypto.rand package. {pull}1503{1503]
- Fix beats hanging in -configtest {issue}1213[1213]
- Fix kafka log message output {pull}1516[1516]

*Packetbeat*

Expand Down
6 changes: 3 additions & 3 deletions libbeat/outputs/kafka/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import "github.com/elastic/beats/libbeat/logp"
type kafkaLogger struct{}

func (kafkaLogger) Print(v ...interface{}) {
logp.Warn("kafka message: %v", v)
logp.Warn("kafka message: %v", v...)
}

func (kafkaLogger) Printf(format string, v ...interface{}) {
logp.Warn(format, v)
logp.Warn(format, v...)
}

func (kafkaLogger) Println(v ...interface{}) {
logp.Warn("kafka message: %v", v)
logp.Warn("kafka message: %v", v...)
}

0 comments on commit 9404abb

Please sign in to comment.