From ccd4efc3b36e9b7c77ef1eb2906018e88a7194a4 Mon Sep 17 00:00:00 2001 From: Chao Chen Date: Wed, 10 Aug 2022 14:51:25 -0700 Subject: [PATCH] logging RoleGrantPermission key and range end Signed-off-by: Chao Chen --- server/auth/store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/auth/store.go b/server/auth/store.go index a27f9fdc2..370629c29 100644 --- a/server/auth/store.go +++ b/server/auth/store.go @@ -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 }