diff --git a/ecmascript/jspandafile/js_pandafile_executor.cpp b/ecmascript/jspandafile/js_pandafile_executor.cpp index a5c31ef300d8dd2faceb448294148e107a5fedca..88ac0ef92a7ee5ae704ddd08f9c79b28e7adbef2 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 389cf8ce490f1ed99bbc9622b485721b4ced4857..ff19871346d22042ca9dc772a3cf08d749eeee6e 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 8ecb46fa4ce16e01681750fbfe2dfecd9aeb1ac9..1d3ab582c0044c3865fee201bc92bb9142add8b9 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 4e090cbaa5153480c940811a0198a130526737c3..408fb7ef38e6de541db6aa98953e89a6cf09af39 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 24ce2558d9481ae9aa30706d6ba8de31d5c7cb8f..ba68c4b4f62d590265d49d8c40fb2252029b1f77 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 a18dffe0b3595351c9b25576e342647c0ac391d5..3ca2ff574c850bc6069a697dce6aee5c9101ab10 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 c42c15d8eb8203a6a7bf0bff3539d214d40d93ac..84ce4e57294f4a70c14298d4a56358162fce6ce8 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; } }