add log get cache

This commit is contained in:
Hoang 2021-12-07 18:18:44 +07:00
parent 55dff6d477
commit 9c0ba9312f
1 changed files with 3 additions and 2 deletions

5
cache/role.go vendored
View File

@ -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
}