From: Joel Rosdahl Date: Mon, 31 Mar 2025 18:04:16 +0000 (+0200) Subject: feat: Log which result entry matched in manifest X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c687ec3f4e8f2f8ba91c935f7a5ec0e56f7e013;p=thirdparty%2Fccache.git feat: Log which result entry matched in manifest --- diff --git a/src/ccache/core/manifest.cpp b/src/ccache/core/manifest.cpp index 48a5d184..9a0f9239 100644 --- a/src/ccache/core/manifest.cpp +++ b/src/ccache/core/manifest.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2009-2024 Joel Rosdahl and other contributors +// Copyright (C) 2009-2025 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -162,6 +162,7 @@ Manifest::look_up_result_digest(const Context& ctx) const for (size_t i = m_results.size(); i > 0; i--) { const auto& result = m_results[i - 1]; if (result_matches(ctx, result, stated_files, hashed_files)) { + LOG("Result entry {} matched in manifest", i - 1); return result.key; } }