Skip to content

Commit

Permalink
Fix log entry (#37272)
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.
  • Loading branch information
belimawr authored Dec 4, 2023
1 parent 2e9f1d4 commit be42a33
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 @@ -447,8 +447,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 be42a33

Please sign in to comment.