Skip to content

Commit

Permalink
x-pack/filebeat/input/internal/httplog: fix incorrect append source (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 authored Oct 25, 2023
1 parent a572a42 commit bbf0111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ is collected by it.
- Fix ignoring external input configuration in `take_over: true` mode {issue}36378[36378] {pull}36395[36395]
- Add validation to http_endpoint config for empty URL {pull}36816[36816] {issue}36772[36772]
- Fix merging of array fields(processors, paths, parsers) in configurations generated from hints and default config. {issue}36838[36838] {pull}36857[36857]
- Fix handling of response errors in HTTPJSON and CEL request trace logging. {pull}36956[36956]

*Heartbeat*

Expand Down
4 changes: 2 additions & 2 deletions x-pack/filebeat/input/internal/httplog/roundtripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ func (rt *LoggingRoundTripper) RoundTrip(req *http.Request) (*http.Response, err
switch len(errorsMessages) {
case 0:
case 1:
respParts = append(reqParts, zap.String("error.message", errorsMessages[0]))
respParts = append(respParts, zap.String("error.message", errorsMessages[0]))
default:
respParts = append(reqParts, zap.Strings("error.message", errorsMessages))
respParts = append(respParts, zap.Strings("error.message", errorsMessages))
}
log.Debug("HTTP response", respParts...)

Expand Down

0 comments on commit bbf0111

Please sign in to comment.