mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14330 from chaochn47/auth_test_logging
logging RoleGrantPermission key and range end
This commit is contained in:
commit
cb5f358b5f
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user