From 3c4e08ad27719311814c9b0fab87938037e501d1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:22:09 -0500 Subject: [PATCH] Fix log entry (#37272) (#37281) 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 be42a3369f9484cf7aff9c5ff156d6f405b98846) Co-authored-by: Tiago Queiroz --- libbeat/outputs/elasticsearch/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbeat/outputs/elasticsearch/client.go b/libbeat/outputs/elasticsearch/client.go index af7e55b0e56f..edc5c251e523 100644 --- a/libbeat/outputs/elasticsearch/client.go +++ b/libbeat/outputs/elasticsearch/client.go @@ -413,8 +413,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 } }