Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kafka log message printing #1516

Merged
merged 1 commit into from
Apr 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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...)
}