Skip to content

Commit

Permalink
Fix logger statement in aws-s3 input (#27982) (#27984)
Browse files Browse the repository at this point in the history
It should have used Warnw instead of Warn because it included structured data.

(cherry picked from commit a3f0976)

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
  • Loading branch information
mergify[bot] and andrewkroh committed Sep 17, 2021
1 parent 09926ba commit ab105e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/awss3/sqs_s3_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (p *sqsS3EventProcessor) keepalive(ctx context.Context, log *logp.Logger, w

// Renew visibility.
if err := p.sqs.ChangeMessageVisibility(ctx, msg, p.sqsVisibilityTimeout); err != nil {
log.Warn("Failed to extend message visibility timeout.", "error", err)
log.Warnw("Failed to extend message visibility timeout.", "error", err)
}
}
}
Expand Down

0 comments on commit ab105e5

Please sign in to comment.