From: Joel Rosdahl Date: Fri, 30 Jul 2021 08:29:24 +0000 (+0200) Subject: feat(http-storage): Log translation to pseudo-SHA256 key X-Git-Tag: v4.4~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=befcd9e4969f45d7307131767f932f203c846ffb;p=thirdparty%2Fccache.git feat(http-storage): Log translation to pseudo-SHA256 key --- diff --git a/src/storage/secondary/HttpStorage.cpp b/src/storage/secondary/HttpStorage.cpp index 2867e1b83..3aa5e58e8 100644 --- a/src/storage/secondary/HttpStorage.cpp +++ b/src/storage/secondary/HttpStorage.cpp @@ -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); }