From 144b2c619f28c91663936cd445251ca28af45f88 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 7 Jun 2023 17:19:02 +0200 Subject: 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. --- src/buildtool/file_system/git_cas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/file_system/git_cas.cpp') 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()); -- cgit v1.2.3