summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-10-10 16:22:50 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-10-11 14:32:44 +0200
commitdda280d9b651d20374caf61d54351960c93124b4 (patch)
tree38270f10a7f8e866e6046157ea4b084d54022136 /src
parentfe71bb0d62f08b8374fdbeda1c68fbfd823b32d5 (diff)
downloadjustbuild-dda280d9b651d20374caf61d54351960c93124b4.tar.gz
FileSystemMgr: Suppress unsupported object type warning
... if the object does not even exist. In that case, a trace message is produced and the caller is responsible for reporting errors.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/file_system/file_system_manager.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/buildtool/file_system/file_system_manager.hpp b/src/buildtool/file_system/file_system_manager.hpp
index 50118f81..0595aae5 100644
--- a/src/buildtool/file_system/file_system_manager.hpp
+++ b/src/buildtool/file_system/file_system_manager.hpp
@@ -400,9 +400,15 @@ class FileSystemManager {
if (IsDirectory(path)) {
return ObjectType::Tree;
}
- Logger::Log(LogLevel::Debug,
- "object type for {} not supported yet.",
- path.string());
+ if (Exists(path)) {
+ Logger::Log(LogLevel::Debug,
+ "object type for {} is not supported yet.",
+ path.string());
+ }
+ else {
+ Logger::Log(
+ LogLevel::Trace, "non-existing object path {}.", path.string());
+ }
return std::nullopt;
}