From 6efe7d71e40eef35dee566b016df641c957cd07e Mon Sep 17 00:00:00 2001 From: sodanotgreen Date: Wed, 31 Jul 2024 10:45:55 +0800 Subject: [PATCH] log Signed-off-by: sodanotgreen --- frameworks/native/runtime/connect_server_manager.cpp | 4 ++-- frameworks/native/runtime/js_worker.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/native/runtime/connect_server_manager.cpp b/frameworks/native/runtime/connect_server_manager.cpp index 26da255159..e72cbff3fd 100644 --- a/frameworks/native/runtime/connect_server_manager.cpp +++ b/frameworks/native/runtime/connect_server_manager.cpp @@ -138,7 +138,7 @@ bool ConnectServerManager::StoreInstanceMessage(int32_t tid, int32_t instanceId, auto result = instanceMap_.try_emplace(instanceId, std::make_pair(instanceName, tid)); if (!result.second) { TAG_LOGW(AAFwkTag::JSRUNTIME, - "Instance %{public}d already added", instanceId); + "Instance %{public}d added", instanceId); return false; } } @@ -314,7 +314,7 @@ void ConnectServerManager::RemoveInstance(int32_t instanceId) std::lock_guard lock(mutex_); auto it = instanceMap_.find(instanceId); if (it == instanceMap_.end()) { - TAG_LOGW(AAFwkTag::JSRUNTIME, "Instance %{public}d is not found", + TAG_LOGW(AAFwkTag::JSRUNTIME, "Instance %{public}d not found", instanceId); return; } diff --git a/frameworks/native/runtime/js_worker.cpp b/frameworks/native/runtime/js_worker.cpp index 9aad72e242..c55afe85d9 100644 --- a/frameworks/native/runtime/js_worker.cpp +++ b/frameworks/native/runtime/js_worker.cpp @@ -226,7 +226,7 @@ void AssetHelper::operator()(const std::string& uri, uint8_t** buff, size_t* buf // 2.2 start with /modulename // 2.3 start with @namespace // 2.4 start with modulename - TAG_LOGD(AAFwkTag::JSRUNTIME, "The application is packaged using esmodule mode"); + TAG_LOGD(AAFwkTag::JSRUNTIME, "esmodule mode"); if (uri.find(BUNDLE_NAME_FLAG) == 0) { TAG_LOGD(AAFwkTag::JSRUNTIME, "uri start with @bundle:"); size_t fileNamePos = uri.find_last_of("/");