diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-06-04 11:31:45 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-06-04 14:34:44 +0200 |
commit | db63e5764550fddf0910fb6a7993f2ddb3e6f387 (patch) | |
tree | 8d118062888de2b37b12e3c1b435e07cd115c3a6 /src/buildtool | |
parent | bed4f4d7c81420832b05acaf9259b50458792b74 (diff) | |
download | justbuild-db63e5764550fddf0910fb6a7993f2ddb3e6f387.tar.gz |
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.
Diffstat (limited to 'src/buildtool')
-rw-r--r-- | src/buildtool/file_system/git_repo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } |