diff --git a/modules/sandbox/sandbox_shared_mount.cpp b/modules/sandbox/sandbox_shared_mount.cpp index a5e11c043f8f0228a48a97a7db8ff509e417306f..590fce003d5510a21bb2785921f9be3a35be9073 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 605eceb950de80fa6ae161e7bdda0c076b98b437..6f30d7b423913aeeca055716796387a7a2f25153 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 8d2707498303b22a4544a88c3c30b23119d5deb8..d3097b7a002515e0ccabf80f741f4886ddeaa062 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 aae3dd26d27a92711ee1102148f3deba9f44d076..de1f3c89e202760f278bdc0bf1684054422c38e3 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);