Skip to content

Commit

Permalink
Fix log entry (#37272) (#37282)
Browse files Browse the repository at this point in the history
This commit fixes a warn log entry that was missing the section
stating that log level debug contains more detailed information like
the raw event and cause for the error.

(cherry picked from commit be42a33)

Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>
  • Loading branch information
mergify[bot] and belimawr authored Dec 4, 2023
1 parent b30a5ec commit 2de1337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/outputs/elasticsearch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ func (client *Client) bulkCollectPublishFails(result eslegclient.BulkResult, dat
}
} else { // drop
stats.nonIndexable++
client.log.Warnf("Cannot index event (status=%v): dropping event!", status)
client.log.Debugf("Cannot index event %#v (status=%v): %s, dropping event! Enable debug logs to view the event and cause.", data[i], status, msg)
client.log.Warnf("Cannot index event (status=%v): dropping event! Enable debug logs to view the event and cause.", status)
client.log.Debugf("Cannot index event %#v (status=%v): %s, dropping event!", data[i], status, msg)
continue
}
}
Expand Down

0 comments on commit 2de1337

Please sign in to comment.