]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Log which result entry matched in manifest
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 31 Mar 2025 18:04:16 +0000 (20:04 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 31 Mar 2025 18:04:16 +0000 (20:04 +0200)
src/ccache/core/manifest.cpp

index 48a5d184c25938a091f9a1c5859232d41ef2c992..9a0f92398e54bff0ca4fd677b0288e9ab2814ddb 100644 (file)
@@ -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;
     }
   }