diff --git a/base/src/directory_ex.cpp b/base/src/directory_ex.cpp index 77dddb734fa3d136586f6febf2cf001d014e1c26..4d530ae7c73dd5511c74c2f6df1e6994ced6b84e 100644 --- a/base/src/directory_ex.cpp +++ b/base/src/directory_ex.cpp @@ -398,13 +398,13 @@ bool PathToRealPath(const string& path, string& realPath) char tmpPath[PATH_MAX] = {0}; if (realpath(path.c_str(), tmpPath) == nullptr) { - UTILS_LOGD("path to realpath error"); + UTILS_LOGE("path to realpath error: %{public}d, path: %{private}s", errno, path.c_str()); return false; } realPath = tmpPath; if (access(realPath.c_str(), F_OK) != 0) { - UTILS_LOGD("check realpath (%{private}s) error", realPath.c_str()); + UTILS_LOGE("check realpath error: %{public}d path: (%{private}s)", errno, realPath.c_str()); return false; } return true;