From 4fb9acc7c1a75b3bbb9fa1f040e2bf05bef8c77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=AC=A3=E5=AE=87?= Date: Thu, 11 Sep 2025 22:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张欣宇 Change-Id: I5bd6f99078b456fc6edb3300bb655b5f6c189751 --- .../appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp | 4 ++-- interfaces/kits/cj/src/bundle_manager.cpp | 2 +- services/bundlemgr/src/bundle_data_mgr.cpp | 6 +++--- services/bundlemgr/src/bundle_mgr_host_impl.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp index f973df1569..8ffbd80bc7 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp @@ -546,7 +546,7 @@ ErrCode BundleMgrProxy::GetBundleInfoForSelfWithOutCache(int32_t flags, BundleIn auto res = GetParcelableInfoWithErrCode( BundleMgrInterfaceCode::GET_BUNDLE_INFO_FOR_SELF, data, bundleInfo); if (res != ERR_OK) { - LOG_NOFUNC_E(BMS_TAG_QUERY, "GetBundleInfoForSelfWithOutCache failed err:%{public}d", res); + LOG_D(BMS_TAG_QUERY, "GetBundleInfoForSelfWithOutCache failed err:%{public}d", res); return res; } return ERR_OK; @@ -5450,7 +5450,7 @@ ErrCode BundleMgrProxy::CanOpenLink( } ErrCode res = reply.ReadInt32(); if (res != ERR_OK) { - APP_LOGE("host reply err: %{public}d", res); + APP_LOGD("host reply err: %{public}d", res); return res; } canOpen = reply.ReadBool(); diff --git a/interfaces/kits/cj/src/bundle_manager.cpp b/interfaces/kits/cj/src/bundle_manager.cpp index 7f81c0b37e..509de46002 100644 --- a/interfaces/kits/cj/src/bundle_manager.cpp +++ b/interfaces/kits/cj/src/bundle_manager.cpp @@ -226,7 +226,7 @@ bool BundleManagerImpl::InnerCanOpenLink(std::string link, int32_t& code) code = AppExecFwk::CommonFunc::ConvertErrCode( iBundleMgr->CanOpenLink(link, canOpen)); if (code != NO_ERROR) { - APP_LOGE("CanOpenLink failed"); + APP_LOGD("CanOpenLink failed"); return canOpen; } return canOpen; diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index 3018b07311..3ca17768a5 100644 --- a/services/bundlemgr/src/bundle_data_mgr.cpp +++ b/services/bundlemgr/src/bundle_data_mgr.cpp @@ -9356,7 +9356,7 @@ void BundleDataMgr::SetEl5DirPolicy(const CreateDirParam &el5Param, InnerBundleI ErrCode BundleDataMgr::CanOpenLink( const std::string &link, bool &canOpen) const { - APP_LOGI("link: %{public}s", link.c_str()); + APP_LOGD("link: %{public}s", link.c_str()); auto uid = IPCSkeleton::GetCallingUid(); InnerBundleInfo innerBundleInfo; if (GetInnerBundleInfoByUid(uid, innerBundleInfo) != ERR_OK) { @@ -9371,7 +9371,7 @@ ErrCode BundleDataMgr::CanOpenLink( size_t pos = link.find(SCHEME_END); if (pos == std::string::npos) { - APP_LOGE("parse link : %{public}s failed", link.c_str()); + APP_LOGD("parse link : %{public}s failed", link.c_str()); return ERR_BUNDLE_MANAGER_INVALID_SCHEME; } std::string scheme = link.substr(0, pos); @@ -9393,7 +9393,7 @@ ErrCode BundleDataMgr::CanOpenLink( } canOpen = !abilityInfos.empty(); - APP_LOGI("canOpen : %{public}d", canOpen); + APP_LOGI_NOFUNC("link:%{public}s canOpen:%{public}d", link.c_str(), canOpen); return ERR_OK; } diff --git a/services/bundlemgr/src/bundle_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_mgr_host_impl.cpp index f841ca40e8..2f6a266639 100644 --- a/services/bundlemgr/src/bundle_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_mgr_host_impl.cpp @@ -3285,7 +3285,7 @@ bool BundleMgrHostImpl::VerifyCallingPermission(const std::string &permission) bool BundleMgrHostImpl::QueryExtensionAbilityInfoByUri(const std::string &uri, int32_t userId, ExtensionAbilityInfo &extensionAbilityInfo) { - LOG_I(BMS_TAG_QUERY, "uri:%{private}s -u %{public}d", uri.c_str(), userId); + LOG_D(BMS_TAG_QUERY, "uri:%{private}s -u %{public}d", uri.c_str(), userId); // API9 need to be system app, otherwise return empty data if (!BundlePermissionMgr::IsSystemApp() && !BundlePermissionMgr::VerifyCallingBundleSdkVersion(ServiceConstants::API_VERSION_NINE)) { -- Gitee