From 4e2912e758e7fb4d5762ff797588291e6e592557 Mon Sep 17 00:00:00 2001 From: yanzhiqi1 Date: Thu, 7 Aug 2025 20:03:30 +0800 Subject: [PATCH] change log level to debug Issue: #ICRXCD Signed-off-by: yanzhiqi1 Change-Id: I21b899a41c21a9a4c16e8869bac0e709efa63f88 --- ecmascript/jspandafile/js_pandafile_executor.cpp | 4 ++-- ecmascript/mem/heap.h | 1 - ecmascript/napi/jsnapi_expo.cpp | 2 +- ecmascript/ohos/module_snapshot_interfaces.cpp | 2 +- ecmascript/pgo_profiler/pgo_profiler.cpp | 2 +- ecmascript/pgo_profiler/pgo_profiler_manager.cpp | 2 +- ecmascript/platform/unix/mac/os.cpp | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ecmascript/jspandafile/js_pandafile_executor.cpp b/ecmascript/jspandafile/js_pandafile_executor.cpp index a5c31ef300..88ac0ef92a 100644 --- a/ecmascript/jspandafile/js_pandafile_executor.cpp +++ b/ecmascript/jspandafile/js_pandafile_executor.cpp @@ -522,7 +522,7 @@ bool JSPandaFileExecutor::IsExecuteModuleInAbcFile(JSThread *thread, [[maybe_unu thread, abcFilePath, entry, false, ExecuteTypes::STATIC); RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, false); if (jsPandaFile == nullptr) { - LOG_ECMA(ERROR) << "When checking if module is in abc file, loading panda file failed. Current file is " << + LOG_ECMA(WARN) << "When checking if module is in abc file, loading panda file failed. Current file is " << abcFilePath; return false; } @@ -530,7 +530,7 @@ bool JSPandaFileExecutor::IsExecuteModuleInAbcFile(JSThread *thread, [[maybe_unu abcFilePath, "", entry); JSRecordInfo *recordInfo = jsPandaFile->CheckAndGetRecordInfo(entryPoint); if (recordInfo == nullptr) { - LOG_ECMA(ERROR) << "When checking if module is in abc file, Cannot find module '" << entryPoint << "'"; + LOG_ECMA(WARN) << "When checking if module is in abc file, Cannot find module '" << entryPoint << "'"; return false; } return true; diff --git a/ecmascript/mem/heap.h b/ecmascript/mem/heap.h index 389cf8ce49..ff19871346 100644 --- a/ecmascript/mem/heap.h +++ b/ecmascript/mem/heap.h @@ -1511,7 +1511,6 @@ public: { sHeap_->NotifyPostFork(); smartGCStats_.startupStatus_.store(StartupStatus::ON_STARTUP, std::memory_order_relaxed); - LOG_GC(INFO) << "SmartGC: enter app cold start"; size_t localFirst = config_.GetMaxHeapSize(); size_t localSecond = config_.GetMaxHeapSize() * JUST_FINISH_STARTUP_LOCAL_THRESHOLD_RATIO; auto sharedHeapConfig = sHeap_->GetEcmaParamConfiguration(); diff --git a/ecmascript/napi/jsnapi_expo.cpp b/ecmascript/napi/jsnapi_expo.cpp index 8ecb46fa4c..1d3ab582c0 100644 --- a/ecmascript/napi/jsnapi_expo.cpp +++ b/ecmascript/napi/jsnapi_expo.cpp @@ -4669,7 +4669,7 @@ void JSNApi::ClearCurrentTaskInfo(const EcmaVM *vm) void JSNApi::SetLargeHeap(bool isLargeHeap) { - LOG_ECMA(INFO) << "Set large heap: " << isLargeHeap; + LOG_ECMA(DEBUG) << "Set large heap: " << isLargeHeap; auto instance = ecmascript::Runtime::GetInstance(); ASSERT(instance != nullptr); instance->SetEnableLargeHeap(isLargeHeap); diff --git a/ecmascript/ohos/module_snapshot_interfaces.cpp b/ecmascript/ohos/module_snapshot_interfaces.cpp index 4e090cbaa5..408fb7ef38 100644 --- a/ecmascript/ohos/module_snapshot_interfaces.cpp +++ b/ecmascript/ohos/module_snapshot_interfaces.cpp @@ -39,7 +39,7 @@ void ModuleSnapshotInterfaces::Serialize(const EcmaVM *vm, const CString &path) void ModuleSnapshotInterfaces::Deserialize(const EcmaVM *vm, const CString &path) { - LOG_ECMA(INFO) << "ModuleSnapshotInterfaces::Deserialize: " << path; + LOG_ECMA(DEBUG) << "ModuleSnapshotInterfaces::Deserialize: " << path; ECMA_BYTRACE_NAME(HITRACE_LEVEL_COMMERCIAL, HITRACE_TAG_ARK, "ModuleSnapshotInterfaces::Deserialize", ""); // check application white list if (!filesystem::Exists(path.c_str())) { diff --git a/ecmascript/pgo_profiler/pgo_profiler.cpp b/ecmascript/pgo_profiler/pgo_profiler.cpp index 24ce2558d9..ba68c4b4f6 100644 --- a/ecmascript/pgo_profiler/pgo_profiler.cpp +++ b/ecmascript/pgo_profiler/pgo_profiler.cpp @@ -1934,7 +1934,7 @@ PGOProfiler::PGOProfiler(EcmaVM* vm, bool isEnable) } LOG_PGO(INFO) << "constructing pgo profiler, pgo is enabled"; } else { - LOG_PGO(INFO) << "skipping pgo profiler construction, pgo is disabled"; + LOG_PGO(DEBUG) << "skipping pgo profiler construction, pgo is disabled"; } }; diff --git a/ecmascript/pgo_profiler/pgo_profiler_manager.cpp b/ecmascript/pgo_profiler/pgo_profiler_manager.cpp index a18dffe0b3..3ca2ff574c 100644 --- a/ecmascript/pgo_profiler/pgo_profiler_manager.cpp +++ b/ecmascript/pgo_profiler/pgo_profiler_manager.cpp @@ -219,7 +219,7 @@ void PGOProfilerManager::Destroy() std::shared_ptr PGOProfilerManager::BuildProfiler(EcmaVM* vm, bool isEnable) { - LOG_PGO(INFO) << "build profiler, pgo is " << (isEnable ? "enabled" : "disabled"); + LOG_PGO(DEBUG) << "build profiler, pgo is " << (isEnable ? "enabled" : "disabled"); if (isEnable) { isEnable = InitializeData(); } diff --git a/ecmascript/platform/unix/mac/os.cpp b/ecmascript/platform/unix/mac/os.cpp index c42c15d8eb..84ce4e5729 100644 --- a/ecmascript/platform/unix/mac/os.cpp +++ b/ecmascript/platform/unix/mac/os.cpp @@ -71,7 +71,7 @@ void SetSecurityLabel(const std::string& path) } if (setxattr(path.c_str(), XATTR_KEY, DEFAULT_DATA_LEVEL.data(), DEFAULT_DATA_LEVEL.size(), 0, 0) < 0) { - LOG_ECMA(WARN) << "set label failed! level: " << DEFAULT_DATA_LEVEL << ", file: " << path; + LOG_ECMA(DEBUG) << "set label failed! level: " << DEFAULT_DATA_LEVEL << ", file: " << path; } } -- Gitee