diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-22 11:55:59 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-01-22 16:05:29 +0100 |
commit | fc9f622cba6b6671f5b5f0371de9bf31ae75c7d1 (patch) | |
tree | c28e4d52ede9302c14412d636ce97d7ef55b9436 /src/buildtool/execution_api/git/git_api.hpp | |
parent | cf7bdda108ef7bfe2efc612725f99946dc30c774 (diff) | |
download | justbuild-fc9f622cba6b6671f5b5f0371de9bf31ae75c7d1.tar.gz |
Git CAS access: reduce log level
Trying to access a git object return a recoverable failure, hence
the failure to find the object in the git object database should
be logged at warning level at most. Moreover, in some cases we
should log that event at an even lower level, e.g., if we're just
checking the presence of the object in the local git cas to avoid
unnecessary network access.
Diffstat (limited to 'src/buildtool/execution_api/git/git_api.hpp')
-rw-r--r-- | src/buildtool/execution_api/git/git_api.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/git/git_api.hpp b/src/buildtool/execution_api/git/git_api.hpp index 64e3bd16..a6ad4196 100644 --- a/src/buildtool/execution_api/git/git_api.hpp +++ b/src/buildtool/execution_api/git/git_api.hpp @@ -323,7 +323,8 @@ class GitApi final : public IExecutionApi { [[nodiscard]] auto IsAvailable(ArtifactDigest const& digest) const noexcept -> bool override { - return repo_config_->ReadBlobFromGitCAS(digest.hash()).has_value(); + return repo_config_->ReadBlobFromGitCAS(digest.hash(), LogLevel::Trace) + .has_value(); } [[nodiscard]] auto IsAvailable(std::vector<ArtifactDigest> const& digests) |