From ab105e51b3f9083ca33779233d406833f4ad4b39 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 16 Sep 2021 21:49:04 -0400 Subject: [PATCH] Fix logger statement in aws-s3 input (#27982) (#27984) It should have used Warnw instead of Warn because it included structured data. (cherry picked from commit a3f09763ac2a370d09df1545a43a4211c616213d) Co-authored-by: Andrew Kroh --- x-pack/filebeat/input/awss3/sqs_s3_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/awss3/sqs_s3_event.go b/x-pack/filebeat/input/awss3/sqs_s3_event.go index e42b78e28e8..aba2c777739 100644 --- a/x-pack/filebeat/input/awss3/sqs_s3_event.go +++ b/x-pack/filebeat/input/awss3/sqs_s3_event.go @@ -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) } } }