Skip to content

Commit a656d10

Browse files
andrewkrohmergify-bot
authored andcommitted
Fix logger statement in aws-s3 input (#27982)
It should have used Warnw instead of Warn because it included structured data. (cherry picked from commit a3f0976)
1 parent 2202554 commit a656d10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/filebeat/input/awss3/sqs_s3_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (p *sqsS3EventProcessor) keepalive(ctx context.Context, log *logp.Logger, w
173173

174174
// Renew visibility.
175175
if err := p.sqs.ChangeMessageVisibility(ctx, msg, p.sqsVisibilityTimeout); err != nil {
176-
log.Warn("Failed to extend message visibility timeout.", "error", err)
176+
log.Warnw("Failed to extend message visibility timeout.", "error", err)
177177
}
178178
}
179179
}

0 commit comments

Comments
 (0)