Skip to content

Commit

Permalink
Update error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
haoranleo committed Aug 26, 2024
1 parent e379bc7 commit 359acd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ec2provider/ec2provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func applySTSRequestHeaders(stsClient *sts.STS, roleARN, sourceARN string) *sts.
logrus.Infof("Using AWS assumed role %v", roleARN)
sourceAcct, err := getSourceAccount(roleARN)
if err != nil {
logrus.Errorf("failed to parse source account from role ARN %v: %v", roleARN, err)
logrus.WithError(err).WithField("roleARN", roleARN).Error("failed to parse source account from role ARN")
return stsClient
}
reqHeaders := map[string]string{
Expand Down

0 comments on commit 359acd9

Please sign in to comment.