Merge pull request #14330 from chaochn47/auth_test_logging

logging RoleGrantPermission key and range end
This commit is contained in:
Benjamin Wang 2022-08-11 06:39:56 +08:00 committed by GitHub
commit cb5f358b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -832,6 +832,8 @@ func (as *authStore) RoleGrantPermission(r *pb.AuthRoleGrantPermissionRequest) (
"granted/updated a permission to a user",
zap.String("user-name", r.Name),
zap.String("permission-name", authpb.Permission_Type_name[int32(r.Perm.PermType)]),
zap.ByteString("key", r.Perm.Key),
zap.ByteString("range-end", r.Perm.RangeEnd),
)
return &pb.AuthRoleGrantPermissionResponse{}, nil
}