From cd9228cd3abdde56b948be6402def1f80f235817 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 4 Mar 2025 17:56:17 +0100 Subject: 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. --- src/buildtool/main/add_to_cas.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/main/add_to_cas.cpp') 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); -- cgit v1.2.3