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/file_system/file_root.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/file_system/file_root.hpp') diff --git a/src/buildtool/file_system/file_root.hpp b/src/buildtool/file_system/file_root.hpp index 68ca7533..45f74b3c 100644 --- a/src/buildtool/file_system/file_root.hpp +++ b/src/buildtool/file_system/file_root.hpp @@ -539,7 +539,8 @@ class FileRoot { return true; }, /*allow_upwards=*/false, - ignore_special_)) { + ignore_special_, + /*log_failure_at=*/LogLevel::Warning)) { return DirectoryEntries{std::move(map)}; } } -- cgit v1.2.3