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 df6f216)

Co-authored-by: Nic Waller <42976427+nhnicwaller@users.noreply.github.com>
  • Loading branch information
kaiyan-sheng and nhnicwaller committed May 29, 2020
1 parent ae67269 commit 1b13b6d
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 1b13b6d

Please sign in to comment.