Skip to content

Commit

Permalink
STS Cache log statement should also include log tags
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Winther <jippignu@gmail.com>
  • Loading branch information
jippi committed May 17, 2018
1 parent ff21511 commit 9dce6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func assumeRoleFromAWS(arn string, labels []metrics.Label) (*sts.AssumeRoleOutpu
if assumedRole, ok := permissionCache.Get(arn); ok {
labels = append(labels, metrics.Label{Name: "assume_role_from_aws_cache", Value: "hit"})

log.Infof("Found STS Assume Role %s in cache", arn)
logWithLabels(labels).Infof("Found STS Assume Role %s in cache", arn)
return assumedRole.(*sts.AssumeRoleOutput), labels, nil
}
labels = append(labels, metrics.Label{Name: "assume_role_from_aws_cache", Value: "miss"})
Expand Down

0 comments on commit 9dce6bb

Please sign in to comment.