mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-04 05:22:25 +00:00
日志超限整改
Signed-off-by: liuzongze <liuzongze@huawei.com> Change-Id: If06a2e7aa54dcd24731ac4182309d2fcf507077f
This commit is contained in:
parent
053725b71c
commit
a681d926df
@ -33,11 +33,11 @@ const int32_t UID_TRANSFORM_DIVISOR = 200000;
|
||||
ErrCode OsAccountManagerWrapper::QueryActiveOsAccountIds(std::vector<int32_t>& ids)
|
||||
{
|
||||
#ifndef OS_ACCOUNT_PART_ENABLED
|
||||
TAG_LOGI(AAFwkTag::DEFAULT, "Without os account subsystem");
|
||||
TAG_LOGD(AAFwkTag::DEFAULT, "Without os account subsystem");
|
||||
ids.emplace_back(DEFAULT_OS_ACCOUNT_ID);
|
||||
return ERR_OK;
|
||||
#else
|
||||
TAG_LOGI(AAFwkTag::DEFAULT, "os account subsystem");
|
||||
TAG_LOGD(AAFwkTag::DEFAULT, "os account subsystem");
|
||||
return AccountSA::OsAccountManager::QueryActiveOsAccountIds(ids);
|
||||
#endif // OS_ACCOUNT_PART_ENABLED
|
||||
}
|
||||
@ -45,11 +45,11 @@ ErrCode OsAccountManagerWrapper::QueryActiveOsAccountIds(std::vector<int32_t>& i
|
||||
ErrCode OsAccountManagerWrapper::GetOsAccountLocalIdFromUid(const int32_t uid, int32_t &id)
|
||||
{
|
||||
#ifndef OS_ACCOUNT_PART_ENABLED
|
||||
TAG_LOGI(AAFwkTag::DEFAULT, "Without os account subsystem");
|
||||
TAG_LOGD(AAFwkTag::DEFAULT, "Without os account subsystem");
|
||||
id = uid / UID_TRANSFORM_DIVISOR;
|
||||
return ERR_OK;
|
||||
#else
|
||||
TAG_LOGI(AAFwkTag::DEFAULT, "os account subsystem");
|
||||
TAG_LOGD(AAFwkTag::DEFAULT, "os account subsystem");
|
||||
return AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(uid, id);
|
||||
#endif // OS_ACCOUNT_PART_ENABLED
|
||||
}
|
||||
@ -100,7 +100,7 @@ ErrCode OsAccountManagerWrapper::RemoveOsAccount(const int id)
|
||||
TAG_LOGD(AAFwkTag::DEFAULT, "Without os account subsystem");
|
||||
return ERR_OK;
|
||||
#else // OS_ACCOUNT_PART_ENABLED
|
||||
TAG_LOGI(AAFwkTag::DEFAULT, "os account subsystem");
|
||||
TAG_LOGD(AAFwkTag::DEFAULT, "os account subsystem");
|
||||
return AccountSA::OsAccountManager::RemoveOsAccount(id);
|
||||
#endif // OS_ACCOUNT_PART_ENABLED
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user