From 9c0ba9312f84561b27456d896e820623a4f7e96d Mon Sep 17 00:00:00 2001 From: Hoang Date: Tue, 7 Dec 2021 18:18:44 +0700 Subject: [PATCH] add log get cache --- cache/role.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cache/role.go b/cache/role.go index daeac32..61fbf61 100644 --- a/cache/role.go +++ b/cache/role.go @@ -47,11 +47,11 @@ func Roles() { }) return } - log.Println("role", CachedRole{ + log.Println("set role", CachedRole{ Role: role.Code, IsAdmin: role.IsAdmin, Permissions: rolePermissions, - }) + }) // TODO remove }(value) } @@ -72,5 +72,6 @@ func GetCachedRole(key string) CachedRole { "err": err.Error(), }) } + log.Println("get role", cachedRole) // TODO remove return cachedRole }