summaryrefslogtreecommitdiff
path: root/src/buildtool/main/add_to_cas.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-03-04 17:56:17 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-03-05 11:34:41 +0100
commitcd9228cd3abdde56b948be6402def1f80f235817 (patch)
tree4e938a52207c9037f3ab2fefe4fa95fa8b74c430 /src/buildtool/main/add_to_cas.cpp
parente99829207eac4f284045e30e83f186582cadced7 (diff)
downloadjustbuild-cd9228cd3abdde56b948be6402def1f80f235817.tar.gz
FileSystemManager: Let caller decide log level for reading directory
Do not emit errors when it does not lead to build failures. Callers handle the log level at which failures of this method should be logged.
Diffstat (limited to 'src/buildtool/main/add_to_cas.cpp')
-rw-r--r--src/buildtool/main/add_to_cas.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/main/add_to_cas.cpp b/src/buildtool/main/add_to_cas.cpp
index 163fa4c3..b9658950 100644
--- a/src/buildtool/main/add_to_cas.cpp
+++ b/src/buildtool/main/add_to_cas.cpp
@@ -310,7 +310,8 @@ class CASTreeImporter final {
dir_reader,
/*allow_upwards=*/true,
/*ignore_special=*/resolve_special_ ==
- ResolveSpecial::Ignore)) {
+ ResolveSpecial::Ignore,
+ /*log_failure_at=*/LogLevel::Error)) {
if (auto tree = GitRepo::CreateShallowTree(entries)) {
// store tree
return store_tree_(tree->second);