From db63e5764550fddf0910fb6a7993f2ddb3e6f387 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Wed, 4 Jun 2025 11:31:45 +0200 Subject: GitRepo: Fix wrong logging level in reading trees This removes a scenario where otherwise successful (exit code 0) calls to just and just-mr would result in an error-level log message. --- src/buildtool/file_system/git_repo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/buildtool/file_system/git_repo.cpp b/src/buildtool/file_system/git_repo.cpp index 4a6e8ad2..b19dfe3e 100644 --- a/src/buildtool/file_system/git_repo.cpp +++ b/src/buildtool/file_system/git_repo.cpp @@ -1881,7 +1881,7 @@ auto GitRepo::ReadTree(std::string const& id, if (not symlinks.empty() and not std::invoke(check_symlinks.get(), symlinks)) { - Logger::Log(LogLevel::Error, + Logger::Log(LogLevel::Debug, "found upwards symlinks in Git tree {}", is_hex_id ? std::string{id} : ToHexString(id)); return std::nullopt; @@ -1890,7 +1890,7 @@ auto GitRepo::ReadTree(std::string const& id, return entries; } catch (std::exception const& ex) { - Logger::Log(LogLevel::Error, + Logger::Log(LogLevel::Debug, "reading tree with checker failed with:\n{}", ex.what()); } -- cgit v1.2.3