Skip to content

Commit

Permalink
Leave last trace messag when fail to get AWS account information (#8694)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder authored Feb 20, 2025
1 parent f97c9bb commit 19316d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cloud/aws/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,12 @@ func (m *MetadataProvider) GetMetadata() map[string]string {
identity, err := backoff.RetryWithData(func() (*sts.GetCallerIdentityOutput, error) {
identity, err := m.stsClient.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{})
if err != nil {
m.logger.WithError(err).Warn("Tried to to get AWS account ID for BI")
return nil, err
}
return identity, nil
}, bo)
if err != nil {
m.logger.WithError(err).Warn("Failed to to get AWS account ID for BI")
m.logger.WithError(err).Trace("Failed to to get AWS account ID for BI")
return nil
}

Expand Down

0 comments on commit 19316d6

Please sign in to comment.