Skip to content

Commit

Permalink
modify log line
Browse files Browse the repository at this point in the history
  • Loading branch information
Anumita committed Jan 23, 2023
1 parent 68bcc63 commit 0685e5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authz/providers/azure/rbac/rbac.go
Expand Up @@ -329,7 +329,7 @@ func (a *AccessInfo) CheckAccess(request *authzv1.SubjectAccessReviewSpec) (*aut
if v, ok := err.(errutils.HttpStatusCode); ok {
code = v.Code()
}
err = errutils.WithCode(errors.Errorf("Correlation ID: %s. Error: %s", requestUUID.String(), err), code)
err = errutils.WithCode(errors.Errorf("Error: %s. Correlation ID: %s", requestUUID.String(), err), code)
return err
}
return nil
Expand All @@ -338,7 +338,7 @@ func (a *AccessInfo) CheckAccess(request *authzv1.SubjectAccessReviewSpec) (*aut

if err := eg.Wait(); err != nil {
if ctx.Err() == context.DeadlineExceeded {
klog.V(5).Infof("Checkaccess requests have timed out. Error: %v\n", ctx.Err())
klog.V(5).Infof("Checkaccess requests have timed out. Error: %v", ctx.Err())
actionsCount := 0
for i := 0; i < len(checkAccessBodies); i += 1 {
actionsCount = actionsCount + len(checkAccessBodies[i].Actions)
Expand Down

0 comments on commit 0685e5d

Please sign in to comment.