From 9405b0bb88f60a2a57b913abfb080d36b85067ee Mon Sep 17 00:00:00 2001 From: Wang Luyao Date: Mon, 1 Apr 2024 04:13:40 +0800 Subject: [PATCH] =?UTF-8?q?file=5Fapi=20=E6=97=A5=E5=BF=97=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=8E=87=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Wang Luyao --- .../class_randomaccessfile/randomaccessfile_n_exporter.cpp | 2 +- interfaces/kits/js/src/mod_fs/properties/open.cpp | 2 +- interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp | 4 ++-- interfaces/kits/js/src/mod_fs/properties/stat.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/interfaces/kits/js/src/mod_fs/class_randomaccessfile/randomaccessfile_n_exporter.cpp b/interfaces/kits/js/src/mod_fs/class_randomaccessfile/randomaccessfile_n_exporter.cpp index 2b7ec3508..1aec1c6f3 100644 --- a/interfaces/kits/js/src/mod_fs/class_randomaccessfile/randomaccessfile_n_exporter.cpp +++ b/interfaces/kits/js/src/mod_fs/class_randomaccessfile/randomaccessfile_n_exporter.cpp @@ -340,7 +340,7 @@ napi_value RandomAccessFileNExporter::Write(napi_env env, napi_callback_info inf } auto[succ, rafEntity] = GetRAFEntity(env, funcArg.GetThisVar()); if (!succ) { - HILOGE("Failed to get entity of RandomAccessFile"); + HILOGD("Failed to get entity of RandomAccessFile"); NError(EIO).ThrowErr(env); return nullptr; } diff --git a/interfaces/kits/js/src/mod_fs/properties/open.cpp b/interfaces/kits/js/src/mod_fs/properties/open.cpp index 3d58ffc29..03d79b174 100644 --- a/interfaces/kits/js/src/mod_fs/properties/open.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/open.cpp @@ -275,7 +275,7 @@ static NError AsyncCbExec(shared_ptr arg, const string &path, #endif int ret = OpenFileByPath(pathStr, mode); if (ret < 0) { - HILOGE("Failed to open file for libuv error %{public}d", ret); + HILOGD("Failed to open file for libuv error %{public}d", ret); return NError(ret); } arg->fd = ret; diff --git a/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp b/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp index 578d724d9..941ca0644 100644 --- a/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/prop_n_exporter.cpp @@ -215,7 +215,7 @@ napi_value PropNExporter::Unlink(napi_env env, napi_callback_info info) } int ret = uv_fs_unlink(nullptr, unlink_req.get(), path.c_str(), nullptr); if (ret < 0) { - HILOGE("Failed to unlink with path"); + HILOGD("Failed to unlink with path"); return NError(ret); } return NError(ERRNO_NOERR); @@ -308,7 +308,7 @@ static NError MkdirExec(const string &path, bool recursion, bool hasOption) #endif int ret = MkdirCore(path); if (ret) { - HILOGE("Failed to create directory"); + HILOGD("Failed to create directory"); return NError(ret); } return NError(ERRNO_NOERR); diff --git a/interfaces/kits/js/src/mod_fs/properties/stat.cpp b/interfaces/kits/js/src/mod_fs/properties/stat.cpp index 26e44c86e..44bdcaee1 100644 --- a/interfaces/kits/js/src/mod_fs/properties/stat.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/stat.cpp @@ -58,7 +58,7 @@ static NError CheckFsStat(const FileInfo &fileInfo, uv_fs_t* req) if (fileInfo.isPath) { int ret = uv_fs_stat(nullptr, req, fileInfo.path.get(), nullptr); if (ret < 0) { - HILOGE("Failed to stat file with path"); + HILOGD("Failed to stat file with path"); return NError(ret); } } else { -- Gitee