summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-04-10 15:00:22 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-04-10 15:00:22 +0200
commitb4c26eaaaad3092334640fdf79b3fb16bc49917a (patch)
tree0270e18bcf697269d1f6a98e6a96a4abebedce83
parentaff782ac8e0b7465dd62e4e645cce3cd7f7205af (diff)
downloadjustbuild-b4c26eaaaad3092334640fdf79b3fb16bc49917a.tar.gz
FilesystemManger: reduce debug level for absent files
At various places in the build tool, we try to read files from various CASes and caches. The absence of a file there is normal; therefore, reduce log level in order to not overload the debug-level log.
-rw-r--r--src/buildtool/file_system/file_system_manager.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/file_system/file_system_manager.hpp b/src/buildtool/file_system/file_system_manager.hpp
index 3617ab21..fe316451 100644
--- a/src/buildtool/file_system/file_system_manager.hpp
+++ b/src/buildtool/file_system/file_system_manager.hpp
@@ -687,7 +687,7 @@ class FileSystemManager {
-> std::optional<std::string> {
auto const type = Type(file);
if (not type) {
- Logger::Log(LogLevel::Debug,
+ Logger::Log(LogLevel::Trace,
"{} can not be read because it is not a file.",
file.string());
return std::nullopt;
@@ -699,7 +699,7 @@ class FileSystemManager {
ObjectType type) noexcept
-> std::optional<std::string> {
if (not IsFileObject(type)) {
- Logger::Log(LogLevel::Debug,
+ Logger::Log(LogLevel::Trace,
"{} can not be read because it is not a file.",
file.string());
return std::nullopt;
@@ -707,7 +707,7 @@ class FileSystemManager {
auto const to_read = IncrementalReader::FromFile(kChunkSize, file);
if (not to_read.has_value()) {
- Logger::Log(LogLevel::Debug,
+ Logger::Log(LogLevel::Trace,
"FileSystemManager: failed to create reader for {}\n{}",
file.string(),
to_read.error());