From d897cea86543d84eeba9ae4478912be8b76c99eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A8=8A=E6=99=AF=E4=B9=90?= Date: Thu, 13 Mar 2025 16:35:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E5=BF=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 樊景乐 --- modules/sandbox/sandbox_shared_mount.cpp | 8 ++++---- modules/sandbox/sandbox_utils.cpp | 2 +- standard/appspawn_kickdog.c | 4 ++-- standard/appspawn_service.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/sandbox/sandbox_shared_mount.cpp b/modules/sandbox/sandbox_shared_mount.cpp index a5e11c04..590fce00 100644 --- a/modules/sandbox/sandbox_shared_mount.cpp +++ b/modules/sandbox/sandbox_shared_mount.cpp @@ -227,7 +227,7 @@ static int MountWithFileMgr(const AppSpawningCtx *property, const AppDacInfo *in // Check whether the directory is a shared mount point if (SetSandboxPathShared(storageUserPath)) { - APPSPAWN_LOGI("shared mountpoint is exist"); + APPSPAWN_LOGV("shared mountpoint is exist"); return 0; } @@ -274,7 +274,7 @@ static int MountWithOther(const AppSpawningCtx *property, const AppDacInfo *info // Check whether the directory is a shared mount point if (SetSandboxPathShared(storageUserPath)) { - APPSPAWN_LOGI("shared mountpoint is exist"); + APPSPAWN_LOGV("shared mountpoint is exist"); return 0; } @@ -341,7 +341,7 @@ static int MountSharedMapItem(const AppSpawningCtx *property, const AppDacInfo * // Check whether the directory is a shared mount point if (SetSandboxPathShared(sandboxPath)) { - APPSPAWN_LOGI("shared mountpoint is exist"); + APPSPAWN_LOGV("shared mountpoint is exist"); return 0; } @@ -380,7 +380,7 @@ static void MountSharedMap(const AppSpawningCtx *property, const AppDacInfo *inf } } } - APPSPAWN_LOGI("mount shared map success"); + APPSPAWN_LOGV("mount shared map success"); } static inline bool CheckPath(const std::string& name) diff --git a/modules/sandbox/sandbox_utils.cpp b/modules/sandbox/sandbox_utils.cpp index 605eceb9..6f30d7b4 100644 --- a/modules/sandbox/sandbox_utils.cpp +++ b/modules/sandbox/sandbox_utils.cpp @@ -1356,7 +1356,7 @@ int32_t SandboxUtils::MountAllHsp(const AppSpawningCtx *appProperty, std::string APPSPAWN_CHECK(bundles.is_array() && modules.is_array() && versions.is_array() && bundles.size() == modules.size() && bundles.size() == versions.size(), return -1, "MountAllHsp: value is not arrary or sizes are not same"); - APPSPAWN_LOGI("MountAllHsp: app = %{public}s, cnt = %{public}lu", + APPSPAWN_LOGV("MountAllHsp: app = %{public}s, cnt = %{public}lu", GetBundleName(appProperty), static_cast(bundles.size())); for (uint32_t i = 0; i < bundles.size(); i++) { // elements in json arrary can be different type diff --git a/standard/appspawn_kickdog.c b/standard/appspawn_kickdog.c index 8d270749..d3097b7a 100644 --- a/standard/appspawn_kickdog.c +++ b/standard/appspawn_kickdog.c @@ -73,8 +73,8 @@ static void DealSpawnWatchdog(AppSpawnContent *content, bool isOpen) if (isOpen) { content->wdgOpened = (result != -1); } - APPSPAWN_LOGI("procFile: %{public}s procContent: %{public}s %{public}s %{public}s watchdog end, result:%{public}d", - procFile, procContent, (content->mode == MODE_FOR_NWEB_SPAWN) ? + APPSPAWN_LOGI("procContent: %{public}s %{public}s %{public}s watchdog end, result:%{public}d", + procContent, (content->mode == MODE_FOR_NWEB_SPAWN) ? "Nwebspawn" : "Appspawn", isOpen ? "enable" : "kick", result); } diff --git a/standard/appspawn_service.c b/standard/appspawn_service.c index aae3dd26..de1f3c89 100644 --- a/standard/appspawn_service.c +++ b/standard/appspawn_service.c @@ -167,7 +167,7 @@ APPSPAWN_STATIC void WriteSignalInfoToFd(AppSpawnedProcess *appInfo, AppSpawnCon APPSPAWN_LOGE("Spawn Listen failed to write signal info to fd errno %{public}d", errno); return; } - APPSPAWN_LOGI("Spawn Listen successfully write signal info[%{public}s] to fd", jsonString); + APPSPAWN_LOGV("Spawn Listen successfully write signal info[%{public}s] to fd", jsonString); free(jsonString); } @@ -667,7 +667,7 @@ static int AddChildWatcher(AppSpawningCtx *property) watchInfo.events = EVENT_READ; watchInfo.processEvent = ProcessChildResponse; LE_STATUS status = LE_StartWatcher(LE_GetDefaultLoop(), &property->forkCtx.watcherHandle, &watchInfo, property); - APPSPAWN_LOGI("AddChildWatcher with timeout %{public}u fd %{public}d", timeout, watchInfo.fd); + APPSPAWN_LOGV("AddChildWatcher with timeout %{public}u fd %{public}d", timeout, watchInfo.fd); APPSPAWN_CHECK(status == LE_SUCCESS, return APPSPAWN_SYSTEM_ERROR, "Failed to watch child %{public}d", property->pid); status = LE_CreateTimer(LE_GetDefaultLoop(), &property->forkCtx.timer, WaitChildTimeout, property); -- Gitee