From 07e9ec60fe1e203d5e28133d7cc2ffb292df0846 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 28 Aug 2024 15:37:48 +0200 Subject: Demote message on absence of cach key to debug The separation of cache-key handling and CAS lockup in e6a91bb733b0738cee0b3ae06ee640f70c1e787f unified the log-level of two messages to warning: the absence of a cache entry (originally debug) and a report on a malformed entry in the cache (originally warning). As we routinely expect non-cached actions in a build, demote those messages to debug level in order to keep the log readable and not confuse the user with warnings about expected behaviour. --- src/buildtool/storage/local_ac.tpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/buildtool/storage/local_ac.tpp b/src/buildtool/storage/local_ac.tpp index ee21e86a..8ed930c4 100644 --- a/src/buildtool/storage/local_ac.tpp +++ b/src/buildtool/storage/local_ac.tpp @@ -39,7 +39,7 @@ auto LocalAC::CachedResult(bazel_re::Digest const& action_id) const noexcept -> std::optional { auto const cas_key = ReadActionKey(action_id); if (not cas_key) { - logger_->Emit(LogLevel::Warning, cas_key.error()); + logger_->Emit(LogLevel::Debug, cas_key.error()); return std::nullopt; } auto result = ReadAction(*cas_key); -- cgit v1.2.3