From 55dff6d477c5718ef403b8553f4df5b607ddbc1e Mon Sep 17 00:00:00 2001 From: Hoang Date: Tue, 7 Dec 2021 16:45:38 +0700 Subject: [PATCH] add log cache role --- cache/role.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cache/role.go b/cache/role.go index 5e603e7..daeac32 100644 --- a/cache/role.go +++ b/cache/role.go @@ -47,7 +47,11 @@ func Roles() { }) return } - log.Println("role", entry) + log.Println("role", CachedRole{ + Role: role.Code, + IsAdmin: role.IsAdmin, + Permissions: rolePermissions, + }) }(value) }