diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index 8f9b81f16821ebe41bf9674fcc3b7efd483f5120..35356bc18408af17c2d42eeb059994f87903d24c 100644 --- a/services/bundlemgr/src/bundle_data_mgr.cpp +++ b/services/bundlemgr/src/bundle_data_mgr.cpp @@ -235,7 +235,7 @@ void BundleDataMgr::ResetBundleStateData() bool BundleDataMgr::UpdateBundleInstallState(const std::string &bundleName, const InstallState state) { if (bundleName.empty()) { - APP_LOGW("update failed: bundle name is empty"); + APP_LOGW("bundle name is empty"); return false; } @@ -276,7 +276,7 @@ bool BundleDataMgr::AddInnerBundleInfo(const std::string &bundleName, InnerBundl { APP_LOGD("to save info:%{public}s", info.GetBundleName().c_str()); if (bundleName.empty()) { - APP_LOGW("save info fail, empty bundle name"); + APP_LOGW("empty bundle name"); return false; } @@ -289,7 +289,7 @@ bool BundleDataMgr::AddInnerBundleInfo(const std::string &bundleName, InnerBundl std::lock_guard stateLock(stateMutex_); auto statusItem = installStates_.find(bundleName); if (statusItem == installStates_.end()) { - APP_LOGW("save info fail, bundleName:%{public}s is not installed", bundleName.c_str()); + APP_LOGW("save info fail, bundleName:%{public}s", bundleName.c_str()); return false; } if (statusItem->second == InstallState::INSTALL_START) { @@ -600,13 +600,13 @@ bool BundleDataMgr::UpdateInnerBundleInfo( std::unique_lock lock(bundleInfoMutex_); auto infoItem = bundleInfos_.find(bundleName); if (infoItem == bundleInfos_.end()) { - APP_LOGW("bundleName: %{public}s bundle info not exist", bundleName.c_str()); + APP_LOGW("bundle info not exist"); return false; } std::lock_guard stateLock(stateMutex_); auto statusItem = installStates_.find(bundleName); if (statusItem == installStates_.end()) { - APP_LOGW("save info fail, app:%{public}s is not updated", bundleName.c_str()); + APP_LOGW("save info fail"); return false; } // ROLL_BACK and USER_CHANGE should not be here @@ -735,7 +735,7 @@ void BundleDataMgr::GetCloneAbilityInfos(std::vector &abilityInfos, { std::vector cloneAppIndexes = GetCloneAppIndexes(element.GetBundleName(), userId); if (cloneAppIndexes.empty()) { - APP_LOGI("clone app index is empty"); + APP_LOGE("clone app index is empty"); return; } for (int32_t appIndex: cloneAppIndexes) { @@ -752,7 +752,7 @@ void BundleDataMgr::GetCloneAbilityInfosV9(std::vector &abilityInfo { std::vector cloneAppIndexes = GetCloneAppIndexes(element.GetBundleName(), userId); if (cloneAppIndexes.empty()) { - APP_LOGI("clone app index is empty"); + APP_LOGE("clone app index is empty"); return; } for (int32_t appIndex: cloneAppIndexes) { @@ -4932,7 +4932,7 @@ bool BundleDataMgr::GetAllCommonEventInfo(const std::string &eventKey, APP_LOGW("commonEventInfos is empty"); return false; } - APP_LOGE("commonEventInfos find success"); + APP_LOGI("commonEventInfos find success"); return true; } @@ -6896,7 +6896,7 @@ void BundleDataMgr::ResetAOTFlags() APP_LOGW("SaveStorageBundleInfo failed, bundleName : %{public}s", item.second.GetBundleName().c_str()); } }); - APP_LOGI("ResetAOTFlags end"); + APP_LOGD("ResetAOTFlags end"); } void BundleDataMgr::ResetAOTFlagsCommand(const std::string &bundleName) @@ -6913,7 +6913,7 @@ void BundleDataMgr::ResetAOTFlagsCommand(const std::string &bundleName) APP_LOGW("SaveStorageBundleInfo failed, bundleName : %{public}s", item->second.GetBundleName().c_str()); return; } - APP_LOGI("ResetAOTFlagsCommand end"); + APP_LOGD("ResetAOTFlagsCommand end"); } ErrCode BundleDataMgr::ResetAOTCompileStatus(const std::string &bundleName, const std::string &moduleName, @@ -6934,7 +6934,7 @@ ErrCode BundleDataMgr::ResetAOTCompileStatus(const std::string &bundleName, cons APP_LOGW("SaveStorageBundleInfo failed, bundleName : %{public}s", item->second.GetBundleName().c_str()); return ERR_BUNDLE_MANAGER_INTERNAL_ERROR; } - APP_LOGI("ResetAOTCompileStatus end"); + APP_LOGD("ResetAOTCompileStatus end"); return ERR_OK; }