Skip to content

Commit

Permalink
Fix logger statement in aws-s3 input (#27982)
Browse files Browse the repository at this point in the history
It should have used Warnw instead of Warn because it included structured data.
  • Loading branch information
andrewkroh committed Sep 16, 2021
1 parent d1081d5 commit a3f0976
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 a3f0976

Please sign in to comment.