From 1c687ec3f4e8f2f8ba91c935f7a5ec0e56f7e013 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 31 Mar 2025 20:04:16 +0200 Subject: [PATCH] feat: Log which result entry matched in manifest --- src/ccache/core/manifest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.47.2