Skip to content

Commit

Permalink
Fix: Correctly initialize the Logger for the TCP input instance. (ela…
Browse files Browse the repository at this point in the history
…stic#11605)

* Fix: Correctly initialize the Logger for the TCP input instance.

`With()` function was called without the key to identify the value
passed as parameter.
  • Loading branch information
ph authored Apr 12, 2019
1 parent dbf39c1 commit c5d4832
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
Original file line number Diff line number Diff line change
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}11605[11605]

*Auditbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/tcp/input.go
Original file line number Diff line number Diff line change
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 c5d4832

Please sign in to comment.