]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat(http-storage): Log translation to pseudo-SHA256 key
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 30 Jul 2021 08:29:24 +0000 (10:29 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 2 Aug 2021 19:02:09 +0000 (21:02 +0200)
src/storage/secondary/HttpStorage.cpp

index 2867e1b83681438bcac8063747a007dd19eeaed0..3aa5e58e8c6a29480e8fcf0cefd4310395dd34e1 100644 (file)
@@ -243,6 +243,7 @@ HttpStorageBackend::get_entry_path(const Digest& key) const
     static_assert(Digest::size() == 20, "Update below if digest size changes");
     std::string hex_digits = Util::format_base16(key.bytes(), key.size());
     hex_digits.append(hex_digits.data(), sha256_hex_size - hex_digits.size());
+    LOG("Translated key {} to Bazel layout ac/{}", key.to_string(), hex_digits);
     return FMT("{}ac/{}", m_url_path, hex_digits);
   }