int Check(const std::shared_ptr<Creds>& creds,
const std::string& privilege) const {
std::lock_guard<std::recursive_mutex> lock(mutex_);
- _D("check privilege %s", privilege.c_str());
+ _W("cynara_check() ++ privilege(%s), user(%s)",
+ privilege.c_str(), creds->GetUser().c_str());
int ret = cynara_check(handle_.get(), creds->GetClient().c_str(), "",
creds->GetUser().c_str(), privilege.c_str());
+ _W("cynara_check() -- privilege(%s), user(%s)",
+ privilege.c_str(), creds->GetUser().c_str());
if (ret != CYNARA_API_ACCESS_ALLOWED) {
_E("cynara_check() is not allowed. privilege(%s), error(%d)",
privilege.c_str(), ret);