diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-06-07 17:19:02 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-06-09 12:08:11 +0200 |
commit | 144b2c619f28c91663936cd445251ca28af45f88 (patch) | |
tree | 4b41ffed963efa9f0a25e5374f5bb5ba06a95a97 | |
parent | b919f2c84f56dd3a26ef08ca308b80cdbe3729ff (diff) | |
download | justbuild-144b2c619f28c91663936cd445251ca28af45f88.tar.gz |
Git CAS: report absence of CAS at debug level
A git CAS ist just a fall back, so it is OK if it is absent (e.g.,
the specificed directory does not exist). Therefore only log at
debug level, not at error level if we cannot open it.
-rw-r--r-- | src/buildtool/file_system/git_cas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/file_system/git_cas.cpp b/src/buildtool/file_system/git_cas.cpp index 7bddf6b3..65fa874f 100644 --- a/src/buildtool/file_system/git_cas.cpp +++ b/src/buildtool/file_system/git_cas.cpp @@ -147,7 +147,7 @@ auto GitCAS::OpenODB(std::filesystem::path const& repo_path) noexcept -> bool { std::unique_lock lock{repo_mutex}; git_repository* repo = nullptr; if (git_repository_open(&repo, repo_path.c_str()) != 0) { - Logger::Log(LogLevel::Error, + Logger::Log(LogLevel::Debug, "opening git repository {} failed with:\n{}", repo_path.string(), GitLastError()); |