diff --git a/frameworks/js/napi/featureAbility/feature_ability.cpp b/frameworks/js/napi/featureAbility/feature_ability.cpp index 19bff5270b7aa0dbe6a69320c88492061d02885e..002f5ce8ca95d7e70e232eb185f4e9e3a93180b3 100644 --- a/frameworks/js/napi/featureAbility/feature_ability.cpp +++ b/frameworks/js/napi/featureAbility/feature_ability.cpp @@ -267,7 +267,7 @@ Ability* JsFeatureAbility::GetAbility(napi_env env) ret = napi_get_value_external(env, abilityObj, reinterpret_cast(&ability)); if (ret != napi_ok) { napi_get_last_error_info(env, &errorInfo); - TAG_LOGE(AAFwkTag::FA, "get_value_external=%{public}d err:%{public}s", ret, errorInfo->error_message); + TAG_LOGD(AAFwkTag::FA, "get_value_external=%{public}d err:%{public}s", ret, errorInfo->error_message); return nullptr; } diff --git a/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp b/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp index b9432287850a1aaa24e1ac10a30150359bfd82ea..8a2ef2bcb367901c5d2db82bb60bf5a6202d0a4d 100644 --- a/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp +++ b/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp @@ -1834,7 +1834,7 @@ napi_value JsUIAbility::CallObjectMethod(const char *name, napi_value const *arg int64_t timeStart = AbilityRuntime::TimeUtil::SystemTimeMillisecond(); napi_status status = napi_call_function(env, obj, methodOnCreate, argc, argv, nullptr); if (status != napi_ok) { - TAG_LOGE(AAFwkTag::UIABILITY, "JsUIAbility call js, failed: %{public}d", status); + TAG_LOGE(AAFwkTag::UIABILITY, "napi err: %{public}d", status); } int64_t timeEnd = AbilityRuntime::TimeUtil::SystemTimeMillisecond(); if (tryCatch.HasCaught()) { diff --git a/frameworks/native/ability/native/ui_ability.cpp b/frameworks/native/ability/native/ui_ability.cpp index 2567ac4df5836781364dd7d14f3bb8def8d6f0ab..ff65fe2f1d8a0399d0251b1881b497f267365f2d 100644 --- a/frameworks/native/ability/native/ui_ability.cpp +++ b/frameworks/native/ability/native/ui_ability.cpp @@ -348,7 +348,7 @@ bool UIAbility::IsRestoredInContinuation() const bool UIAbility::ShouldRecoverState(const AAFwk::Want &want) { if (!want.GetBoolParam(Want::PARAM_ABILITY_RECOVERY_RESTART, false)) { - TAG_LOGE(AAFwkTag::UIABILITY, "appRecovery not recovery restart"); + TAG_LOGD(AAFwkTag::UIABILITY, "appRecovery not recovery restart"); return false; } @@ -633,7 +633,7 @@ void UIAbility::DispatchLifecycleOnForeground(const AAFwk::Want &want) void UIAbility::HandleCreateAsRecovery(const AAFwk::Want &want) { if (!want.GetBoolParam(Want::PARAM_ABILITY_RECOVERY_RESTART, false)) { - TAG_LOGE(AAFwkTag::UIABILITY, "appRecovery not recovery restart"); + TAG_LOGD(AAFwkTag::UIABILITY, "appRecovery not recovery restart"); return; } diff --git a/frameworks/native/ability/native/ui_ability_thread.cpp b/frameworks/native/ability/native/ui_ability_thread.cpp index a18e6516a1c7062ea881e2742856a36f4dfc0190..309ffd929d58ba9070f2b41632d14a315a8689cc 100644 --- a/frameworks/native/ability/native/ui_ability_thread.cpp +++ b/frameworks/native/ability/native/ui_ability_thread.cpp @@ -431,7 +431,7 @@ void UIAbilityThread::SendResult(int requestCode, int resultCode, const Want &wa { TAG_LOGD(AAFwkTag::UIABILITY, "called"); if (abilityHandler_ == nullptr || requestCode == -1) { - TAG_LOGE(AAFwkTag::UIABILITY, "null abilityHandler_ or requestCode is -1"); + TAG_LOGW(AAFwkTag::UIABILITY, "null abilityHandler_ or requestCode is -1"); return; } diff --git a/frameworks/native/appkit/ability_runtime/app/js_ability_stage_context.cpp b/frameworks/native/appkit/ability_runtime/app/js_ability_stage_context.cpp index 5aa70ecee178aee7109cfb721ce9c0559d69c349..89ac49310170773c3fc1b312e431cff8b4ccabb3 100644 --- a/frameworks/native/appkit/ability_runtime/app/js_ability_stage_context.cpp +++ b/frameworks/native/appkit/ability_runtime/app/js_ability_stage_context.cpp @@ -50,7 +50,7 @@ void JsAbilityStageContext::ConfigurationUpdated(napi_env env, std::shared_ptrRemoveDir(temp) == false) { - TAG_LOGE(AAFwkTag::APPKIT, "path: %{private}s", temp.c_str()); + TAG_LOGW(AAFwkTag::APPKIT, "path: %{private}s", temp.c_str()); } } }; @@ -243,7 +243,7 @@ bool ApplicationCleaner::RemoveDir(const std::string &tempPath) } struct stat buf = {}; if (stat(tempPath.c_str(), &buf) != 0) { - TAG_LOGE(AAFwkTag::APPKIT, "obtain file properties failed"); + TAG_LOGW(AAFwkTag::APPKIT, "obtain file properties failed"); return false; } diff --git a/frameworks/native/appkit/app/main_thread.cpp b/frameworks/native/appkit/app/main_thread.cpp index 9d741c065114c622d2f4493b0592a2e749888363..ef4ffa57bd970aaebec61c9583bf4544d2c3092e 100644 --- a/frameworks/native/appkit/app/main_thread.cpp +++ b/frameworks/native/appkit/app/main_thread.cpp @@ -4000,7 +4000,7 @@ void MainThread::ParseAppConfigurationParams(const std::string configuration, Co TAG_LOGD(AAFwkTag::APPKIT, "start"); appConfig.AddItem(AAFwk::GlobalConfigurationKey::APP_FONT_SIZE_SCALE, DEFAULT_APP_FONT_SIZE_SCALE); if (configuration.empty()) { - TAG_LOGE(AAFwkTag::ABILITYMGR, "empty config"); + TAG_LOGD(AAFwkTag::ABILITYMGR, "empty config"); return; } TAG_LOGI(AAFwkTag::APPKIT, "ParseAppConfigurationParams config:%{public}s", appConfig.GetName().c_str()); diff --git a/frameworks/native/appkit/app_startup/js_startup_config.cpp b/frameworks/native/appkit/app_startup/js_startup_config.cpp index b15bff08495359aff322586bec9b3fb383d92e98..72ed31ae9f0def18668bf9c1cc87ddfda85ee075 100644 --- a/frameworks/native/appkit/app_startup/js_startup_config.cpp +++ b/frameworks/native/appkit/app_startup/js_startup_config.cpp @@ -168,7 +168,7 @@ void JsStartupConfig::InitCustomization(napi_env env, napi_value configEntry, st bool isCallable = false; napi_is_callable(env, method, &isCallable); if (!isCallable) { - TAG_LOGE(AAFwkTag::STARTUP, "onRequestCustomMatchRule not callable"); + TAG_LOGI(AAFwkTag::STARTUP, "onRequestCustomMatchRule not callable"); return; } diff --git a/frameworks/native/appkit/app_startup/js_startup_task.cpp b/frameworks/native/appkit/app_startup/js_startup_task.cpp index 3eee08a8861519e452403b9b9646b8966cea1f1e..38b35a594247c0fd29c54c6fc2f7cf1997957b59 100644 --- a/frameworks/native/appkit/app_startup/js_startup_task.cpp +++ b/frameworks/native/appkit/app_startup/js_startup_task.cpp @@ -241,7 +241,7 @@ int32_t JsStartupTask::RunTaskOnDependencyCompleted(const std::string &dependenc bool isCallable = false; napi_is_callable(env, startupOnDepCompleted, &isCallable); if (!isCallable) { - TAG_LOGE(AAFwkTag::STARTUP, "onDependencyCompleted not callable:%{public}s", name_.c_str()); + TAG_LOGW(AAFwkTag::STARTUP, "onDependencyCompleted not callable:%{public}s", name_.c_str()); return ERR_STARTUP_FAILED_TO_EXECUTE_STARTUP; } diff --git a/frameworks/native/appkit/app_startup/startup_manager.cpp b/frameworks/native/appkit/app_startup/startup_manager.cpp index ef56a145c7cf957a8903d21de2c28aa81b32f9ba..81515f80bbac47d60f996e61ca7f7369d875eb97 100644 --- a/frameworks/native/appkit/app_startup/startup_manager.cpp +++ b/frameworks/native/appkit/app_startup/startup_manager.cpp @@ -1228,7 +1228,7 @@ void StartupManager::InitPreloadSystemSoAllowlist() } if (!ParsePreloadSystemSoAllowlist(parseResult, preloadSystemSoAllowlist_)) { - TAG_LOGE(AAFwkTag::STARTUP, "parsing failed. Clear the blank list of names."); + TAG_LOGW(AAFwkTag::STARTUP, "parsing failed. Clear the blank list of names."); preloadSystemSoAllowlist_.clear(); } } @@ -1274,7 +1274,7 @@ bool StartupManager::ParsePreloadSystemSoAllowlist( const nlohmann::json &jsonStr, std::unordered_set &allowlist) { if (jsonStr.is_discarded() || !jsonStr.is_object()) { - TAG_LOGE(AAFwkTag::STARTUP, "failed to parse JSON string for allowlist."); + TAG_LOGW(AAFwkTag::STARTUP, "failed to parse JSON string for allowlist."); return false; } if (!jsonStr.contains(SYSTEM_PRELOAD_SO_ALLOW_LIST) || !jsonStr[SYSTEM_PRELOAD_SO_ALLOW_LIST].is_array()) { diff --git a/frameworks/native/appkit/app_startup/startup_task_manager.cpp b/frameworks/native/appkit/app_startup/startup_task_manager.cpp index 06c724bfcbecfa878a3c395d72ff9154d3c2d49a..0634e8ebf68445a6af48e452f3eae10c28ca6f07 100644 --- a/frameworks/native/appkit/app_startup/startup_task_manager.cpp +++ b/frameworks/native/appkit/app_startup/startup_task_manager.cpp @@ -72,7 +72,7 @@ int32_t StartupTaskManager::Prepare() return ERR_STARTUP_INTERNAL_ERROR; } if (tasks_.empty()) { - TAG_LOGE(AAFwkTag::STARTUP, "no tasks"); + TAG_LOGW(AAFwkTag::STARTUP, "no tasks"); return ERR_STARTUP_INTERNAL_ERROR; } dispatcher_ = std::make_shared(tasks_, startupSortResult); diff --git a/frameworks/native/runtime/hdc_register.cpp b/frameworks/native/runtime/hdc_register.cpp index 219e7ba8f757ad0bafb34fa5def18005f55af35a..496c1bdc464626ebc4ff29597eab112c8b35d08f 100644 --- a/frameworks/native/runtime/hdc_register.cpp +++ b/frameworks/native/runtime/hdc_register.cpp @@ -55,7 +55,7 @@ void HdcRegister::StartHdcRegister(const std::string& bundleName, const std::str startRegister(processName, bundleName, debugApp, callback); } } else { - TAG_LOGE(AAFwkTag::JSRUNTIME, "null registerLocalHandler_"); + TAG_LOGD(AAFwkTag::JSRUNTIME, "null registerLocalHandler_"); } if (registerHdcHandler_ != nullptr) { auto startRegister = reinterpret_cast(dlsym(registerHdcHandler_, "StartConnect")); @@ -63,7 +63,7 @@ void HdcRegister::StartHdcRegister(const std::string& bundleName, const std::str startRegister(processName, bundleName, debugApp, callback); } } else { - TAG_LOGE(AAFwkTag::JSRUNTIME, "null registerHdcHandler_"); + TAG_LOGD(AAFwkTag::JSRUNTIME, "null registerHdcHandler_"); } } diff --git a/frameworks/native/runtime/js_worker.cpp b/frameworks/native/runtime/js_worker.cpp index bc97ec9d038e298862d09b9a2109cf7d276b8d44..97153c4636a72c24250629437393d1126c3da89f 100644 --- a/frameworks/native/runtime/js_worker.cpp +++ b/frameworks/native/runtime/js_worker.cpp @@ -270,7 +270,7 @@ void AssetHelper::operator()(const std::string& uri, uint8_t** buff, size_t* buf TAG_LOGE(AAFwkTag::JSRUNTIME, "Get buffer by ami failed"); } } else if (!ReadFilePathData(filePath, buff, buffSize, content, useSecureMem, isRestricted, mapper)) { - TAG_LOGE(AAFwkTag::JSRUNTIME, "Get buffer by filepath failed"); + TAG_LOGD(AAFwkTag::JSRUNTIME, "Get buffer by filepath failed"); } } }