Skip to content

Commit

Permalink
Fix: Correctly initialize the Logger for the TCP input instance.
Browse files Browse the repository at this point in the history
`With()` function was called without the key to identify the value
passed as parameter.
  • Loading branch information
ph committed Apr 12, 2019
1 parent dbf39c1 commit fd93684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Expand Up @@ -57,6 +57,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix ILM policy always being overwritten. {pull}11671[11671]
- Fix template always being overwritten. {pull}11671[11671]
- Fix matching of string arrays in contains condition. {pull}11691[11691]
- Fix initialization of the TCP input logger. {pull}xxx[xxx]

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/tcp/input.go
Expand Up @@ -90,7 +90,7 @@ func NewInput(
started: false,
outlet: out,
config: &config,
log: logp.NewLogger("tcp input").With(config.Config.Host),
log: logp.NewLogger("tcp input").With("address", config.Config.Host),
}, nil
}

Expand Down

0 comments on commit fd93684

Please sign in to comment.