diff --git a/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp b/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp index a8136fe61d8e1526d90e04c2fa5a370c711b2c91..a50804031526107a365e8240f0948455b907d1ef 100644 --- a/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp +++ b/frameworks/native/appkit/ability_runtime/app/js_ability_stage.cpp @@ -224,7 +224,7 @@ void JsAbilityStage::Init(const std::shared_ptr &context, } if (!jsAbilityStageObj_) { - TAG_LOGE(AAFwkTag::APPKIT, "null stage"); + TAG_LOGW(AAFwkTag::APPKIT, "null stage"); return; } diff --git a/interfaces/inner_api/connect_server_manager/src/connect_server_manager.cpp b/interfaces/inner_api/connect_server_manager/src/connect_server_manager.cpp index 73a75f3f6a61e73725f46fa5f69a11725f9d8dad..1a091ca20f53f637a8c3d8a9af6dca313fc130c1 100644 --- a/interfaces/inner_api/connect_server_manager/src/connect_server_manager.cpp +++ b/interfaces/inner_api/connect_server_manager/src/connect_server_manager.cpp @@ -405,7 +405,7 @@ void ConnectServerManager::RegisterConnectServerCallback(const ServerConnectCall std::lock_guard lock(connectServerCallbackMutex_); for (const auto &callback : connectServerCallbacks_) { if (callback == connectServerCallback) { - TAG_LOGE(AAFwkTag::JSRUNTIME, "callback exist"); + TAG_LOGW(AAFwkTag::JSRUNTIME, "callback exist"); return; } } @@ -423,7 +423,7 @@ void ConnectServerManager::RegisterSendInstanceMessageCallback( std::lock_guard lock(sendInstanceMessageCallbackMutex_); for (const auto &callback : sendInstanceMessageCallbacks_) { if (callback == sendInstanceMessageCallback) { - TAG_LOGE(AAFwkTag::JSRUNTIME, "callback exist"); + TAG_LOGW(AAFwkTag::JSRUNTIME, "callback exist"); return; } }