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 2b7ec3508df3587c1cf12fce3efcfab66bf1b745..1aec1c6f3dc0782b4b246f68cac747967b78c099 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 3d58ffc2999de28bf264ce77bbf2d17cbd151472..03d79b174d0d1b5e76ebc642f6b7f25d900c83c6 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 578d724d9a2007c9e2870ea17ab697faa6eeddee..941ca0644d0ac85b23107ed877d89f192e54c6c0 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 26e44c86e31ba521144b14de5d9280d001aa122b..44bdcaee19fb81d3a155557b2dcb31a40d2dd8a2 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 {