From ba4c6a0973d4fd7d7947046477c45d17fb5c8f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=A5=E7=BB=B4?= Date: Fri, 15 Aug 2025 19:44:24 -0700 Subject: [PATCH] =?UTF-8?q?description:dfx=E6=9C=AC=E5=9C=B0=E5=A4=A7?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=97=A5=E5=BF=97=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 查维 --- frameworks/js/napi/app/js_app_manager/js_app_manager.cpp | 2 +- .../inner_api/app_manager/src/appmgr/app_mgr_client.cpp | 4 ++-- .../inner_api/app_manager/src/appmgr/app_scheduler_host.cpp | 2 +- services/abilitymgr/src/ability_manager_client.cpp | 4 ++-- services/appmgr/src/app_mgr_service.cpp | 4 ++-- services/appmgr/src/app_mgr_service_inner.cpp | 6 +++--- services/appmgr/src/app_running_manager.cpp | 6 +++--- services/appmgr/src/app_running_record.cpp | 1 - services/appmgr/src/app_spawn_client.cpp | 4 ++-- 9 files changed, 16 insertions(+), 17 deletions(-) diff --git a/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp b/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp index c7e7a79d8ed..e49d958fa1d 100644 --- a/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp +++ b/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp @@ -1194,7 +1194,7 @@ private: return; } int32_t memorySize = abilityManager->GetAppMemorySize(); - TAG_LOGI(AAFwkTag::APPMGR, "memorySize:%{public}d", memorySize); + TAG_LOGD(AAFwkTag::APPMGR, "memorySize:%{public}d", memorySize); task->ResolveWithNoError(env, CreateJsValue(env, memorySize)); delete task; }; diff --git a/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp b/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp index 198b4ff2ecb..bd2899945ef 100644 --- a/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp +++ b/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp @@ -1437,7 +1437,7 @@ int32_t AppMgrClient::PreloadApplication(const std::string &bundleName, int32_t int32_t AppMgrClient::SetSupportedProcessCacheSelf(bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "Called"); + TAG_LOGD(AAFwkTag::APPMGR, "Called"); sptr service = iface_cast(mgrHolder_->GetRemoteObject()); if (service == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "Service is nullptr."); @@ -1448,7 +1448,7 @@ int32_t AppMgrClient::SetSupportedProcessCacheSelf(bool isSupport) int32_t AppMgrClient::SetSupportedProcessCache(int32_t pid, bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "Called"); + TAG_LOGD(AAFwkTag::APPMGR, "Called"); sptr service = iface_cast(mgrHolder_->GetRemoteObject()); if (service == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "Service is nullptr."); diff --git a/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp b/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp index 78d986e17ca..fbff8d8f992 100644 --- a/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp +++ b/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp @@ -32,7 +32,7 @@ void AppSchedulerHost::InitMemberFuncMap() {} AppSchedulerHost::~AppSchedulerHost() { - TAG_LOGI(AAFwkTag::APPMGR, "AppSchedulerHost destruction"); + TAG_LOGD(AAFwkTag::APPMGR, "AppSchedulerHost destruction"); } int AppSchedulerHost::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) diff --git a/services/abilitymgr/src/ability_manager_client.cpp b/services/abilitymgr/src/ability_manager_client.cpp index e4149b294d1..bc5b52dd421 100644 --- a/services/abilitymgr/src/ability_manager_client.cpp +++ b/services/abilitymgr/src/ability_manager_client.cpp @@ -1600,7 +1600,7 @@ AppExecFwk::ElementName AbilityManagerClient::GetTopAbility(bool isNeedLocalDevi TAG_LOGE(AAFwkTag::ABILITYMGR, "get sceneSessionManager failed"); return elementName; } - TAG_LOGI(AAFwkTag::ABILITYMGR, "call GetTopAbility"); + TAG_LOGI(AAFwkTag::ABILITYMGR, "GetTopAbility"); (void)sceneSessionManager->GetFocusSessionElement(elementName); return elementName; } @@ -1648,7 +1648,7 @@ ErrCode AbilityManagerClient::AddFreeInstallObserver(const sptr c int32_t AbilityManagerClient::IsValidMissionIds( const std::vector &missionIds, std::vector &results) { - TAG_LOGI(AAFwkTag::ABILITYMGR, "call"); + TAG_LOGD(AAFwkTag::ABILITYMGR, "call"); #ifdef SUPPORT_SCREEN if (Rosen::SceneBoardJudgement::IsSceneBoardEnabled()) { auto sceneSessionManager = SessionManagerLite::GetInstance().GetSceneSessionManagerLiteProxy(); diff --git a/services/appmgr/src/app_mgr_service.cpp b/services/appmgr/src/app_mgr_service.cpp index 1b907c9f601..e63d18761b7 100644 --- a/services/appmgr/src/app_mgr_service.cpp +++ b/services/appmgr/src/app_mgr_service.cpp @@ -1668,7 +1668,7 @@ int32_t AppMgrService::NotifyMemorySizeStateChanged(int32_t memorySizeState) int32_t AppMgrService::SetSupportedProcessCacheSelf(bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); if (!IsReady()) { TAG_LOGE(AAFwkTag::APPMGR, "not ready"); return ERR_INVALID_OPERATION; @@ -1678,7 +1678,7 @@ int32_t AppMgrService::SetSupportedProcessCacheSelf(bool isSupport) int32_t AppMgrService::SetSupportedProcessCache(int32_t pid, bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "Called"); + TAG_LOGD(AAFwkTag::APPMGR, "Called"); if (!IsReady()) { TAG_LOGE(AAFwkTag::APPMGR, "Not ready."); return ERR_INVALID_OPERATION; diff --git a/services/appmgr/src/app_mgr_service_inner.cpp b/services/appmgr/src/app_mgr_service_inner.cpp index a74eedb2e59..749fc44327f 100644 --- a/services/appmgr/src/app_mgr_service_inner.cpp +++ b/services/appmgr/src/app_mgr_service_inner.cpp @@ -8204,7 +8204,7 @@ bool AppMgrServiceInner::IsAttachDebug(const std::string &bundleName) TAG_LOGD(AAFwkTag::APPMGR, "called"); auto isSaCall = AAFwk::PermissionVerification::GetInstance()->IsSACall(); if (!isSaCall) { - TAG_LOGE(AAFwkTag::APPMGR, "caller token not SA"); + TAG_LOGW(AAFwkTag::APPMGR, "caller token not SA"); return false; } if (appRunningManager_ == nullptr || bundleName.empty()) { @@ -9465,7 +9465,7 @@ bool AppMgrServiceInner::GetKeepAliveState(const std::shared_ptr &sharedBundles) { - TAG_LOGI(AAFwkTag::APPMGR, "QueryRunningSharedBundles call, pid:%{public}d", pid); + TAG_LOGD(AAFwkTag::APPMGR, "QueryRunningSharedBundles call, pid:%{public}d", pid); HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__); auto appRecord = GetAppRunningRecordByPid(pid); if (!appRecord) { diff --git a/services/appmgr/src/app_running_manager.cpp b/services/appmgr/src/app_running_manager.cpp index 7f777379a68..707f4b13fa5 100644 --- a/services/appmgr/src/app_running_manager.cpp +++ b/services/appmgr/src/app_running_manager.cpp @@ -704,10 +704,10 @@ std::shared_ptr AppRunningManager::OnRemoteDied(const wptrRemoveAppDeathRecipient(); appRecord->SetApplicationClient(nullptr); - TAG_LOGI(AAFwkTag::APPMGR, "pname: %{public}s", appRecord->GetProcessName().c_str()); auto priorityObject = appRecord->GetPriorityObject(); if (priorityObject != nullptr) { - TAG_LOGI(AAFwkTag::APPMGR, "pid: %{public}d", priorityObject->GetPid()); + TAG_LOGI(AAFwkTag::APPMGR, "pname: %{public}s, pid: %{public}d", appRecord->GetProcessName().c_str(), + priorityObject->GetPid()); if (appMgrServiceInner != nullptr) { appMgrServiceInner->KillProcessByPid(priorityObject->GetPid(), "OnRemoteDied"); } @@ -1796,7 +1796,7 @@ void AppRunningManager::HandleChildRelation( std::shared_ptr AppRunningManager::OnChildProcessRemoteDied(const wptr &remote) { - TAG_LOGE(AAFwkTag::APPMGR, "On child process remote died"); + TAG_LOGD(AAFwkTag::APPMGR, "On child process remote died"); if (remote == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "null remote"); return nullptr; diff --git a/services/appmgr/src/app_running_record.cpp b/services/appmgr/src/app_running_record.cpp index 879ff44ca74..0ef699dad01 100644 --- a/services/appmgr/src/app_running_record.cpp +++ b/services/appmgr/src/app_running_record.cpp @@ -1248,7 +1248,6 @@ void AppRunningRecord::SendEvent(uint32_t msg, int64_t timeOut) appEventId_++; auto param = appEventId_; - TAG_LOGI(AAFwkTag::APPMGR, "eventId %{public}d", static_cast(param)); eventHandler_->SendEvent(AAFwk::EventWrap(msg, param), timeOut, false); AppEventUtil::GetInstance().AddEvent(shared_from_this(), msg, param); } diff --git a/services/appmgr/src/app_spawn_client.cpp b/services/appmgr/src/app_spawn_client.cpp index 09d7a6f1eaf..4de6d111a12 100644 --- a/services/appmgr/src/app_spawn_client.cpp +++ b/services/appmgr/src/app_spawn_client.cpp @@ -666,7 +666,7 @@ int32_t AppSpawnClient::SendAppSpawnUninstallDebugHapMsg(int32_t userId) int32_t AppSpawnClient::GetRenderProcessTerminationStatus(const AppSpawnStartMsg &startMsg, int &status) { - TAG_LOGI(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); int32_t ret = 0; AppSpawnReqMsgHandle reqHandle = nullptr; @@ -686,7 +686,7 @@ int32_t AppSpawnClient::GetRenderProcessTerminationStatus(const AppSpawnStartMsg return ret; } - TAG_LOGI(AAFwkTag::APPMGR, "AppspawnSendMsg"); + TAG_LOGD(AAFwkTag::APPMGR, "AppspawnSendMsg"); AppSpawnResult result = {0}; ret = AppSpawnClientSendMsg(handle_, reqHandle, &result); status = result.result; -- Gitee