!648 sandbox mount failed log level to info

Merge pull request !648 from linqiheng/sandbox_loginfo
This commit is contained in:
openharmony_ci 2023-05-30 02:05:38 +00:00 committed by Gitee
commit a781fcd148
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -192,8 +192,11 @@ int32_t SandboxUtils::DoAppSandboxMountOnce(const char *originPath, const char *
int ret = 0; int ret = 0;
// to mount fs and bind mount files or directory // to mount fs and bind mount files or directory
ret = mount(originPath, destinationPath, fsType, mountFlags, options); ret = mount(originPath, destinationPath, fsType, mountFlags, options);
APPSPAWN_CHECK(ret == 0, return ret, "errno is: %{public}d, bind mount %{public}s to %{public}s failed", if (ret != 0) {
errno, originPath, destinationPath); APPSPAWN_LOGI("errno is: %{public}d, bind mount %{public}s to %{public}s", errno, originPath,
destinationPath);
return ret;
}
ret = mount(NULL, destinationPath, NULL, MS_SLAVE, NULL); ret = mount(NULL, destinationPath, NULL, MS_SLAVE, NULL);
APPSPAWN_CHECK(ret == 0, return ret, APPSPAWN_CHECK(ret == 0, return ret,
"errno is: %{public}d, private mount to %{public}s failed", errno, destinationPath); "errno is: %{public}d, private mount to %{public}s failed", errno, destinationPath);