Skip to content

Commit

Permalink
include bucket name when logging error (elastic#18679) (elastic#18823)
Browse files Browse the repository at this point in the history
(cherry picked from commit b7a76f3)

Co-authored-by: Nic Waller <[email protected]>
  • Loading branch information
kaiyan-sheng and nhnicwaller authored May 29, 2020
1 parent af5a28b commit 91775b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/s3/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (p *s3Input) handleS3Objects(svc s3iface.ClientAPI, s3Infos []s3Info, errC
p.logger.Debugf("Processing file from s3 bucket \"%s\" with name \"%s\"", info.name, info.key)
err := p.createEventsFromS3Info(svc, info, s3Ctx)
if err != nil {
err = errors.Wrapf(err, "createEventsFromS3Info failed for %v", info.key)
err = errors.Wrapf(err, "createEventsFromS3Info failed processing file from s3 bucket \"%s\" with name \"%s\"", info.name, info.key)
p.logger.Error(err)
s3Ctx.setError(err)
}
Expand Down

0 comments on commit 91775b4

Please sign in to comment.