add log get cache
This commit is contained in:
parent
55dff6d477
commit
9c0ba9312f
|
@ -47,11 +47,11 @@ func Roles() {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Println("role", CachedRole{
|
log.Println("set role", CachedRole{
|
||||||
Role: role.Code,
|
Role: role.Code,
|
||||||
IsAdmin: role.IsAdmin,
|
IsAdmin: role.IsAdmin,
|
||||||
Permissions: rolePermissions,
|
Permissions: rolePermissions,
|
||||||
})
|
}) // TODO remove
|
||||||
}(value)
|
}(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,5 +72,6 @@ func GetCachedRole(key string) CachedRole {
|
||||||
"err": err.Error(),
|
"err": err.Error(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
log.Println("get role", cachedRole) // TODO remove
|
||||||
return cachedRole
|
return cachedRole
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue