Skip to content

Commit

Permalink
include bucket name when logging error (elastic#18679)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhnicwaller authored May 28, 2020
1 parent fe14591 commit b7a76f3
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 b7a76f3

Please sign in to comment.