From: Joel Rosdahl Date: Sat, 7 May 2022 19:07:28 +0000 (+0200) Subject: fix: Log expanded secondary storage URL in put/remove X-Git-Tag: v4.6.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee1314f8561cd7ea3426caa888aae5eb23ab7641;p=thirdparty%2Fccache.git fix: Log expanded secondary storage URL in put/remove --- diff --git a/src/storage/Storage.cpp b/src/storage/Storage.cpp index e29f856f3..098807779 100644 --- a/src/storage/Storage.cpp +++ b/src/storage/Storage.cpp @@ -529,7 +529,7 @@ Storage::put_in_secondary_storage(const Digest& key, LOG("{} {} in {} ({:.2f} ms)", stored ? "Stored" : "Did not have to store", key.to_string(), - entry->url_for_logging, + backend->url_for_logging, ms); } } @@ -557,12 +557,12 @@ Storage::remove_from_secondary_storage(const Digest& key) if (removed) { LOG("Removed {} from {} ({:.2f} ms)", key.to_string(), - entry->url_for_logging, + backend->url_for_logging, ms); } else { LOG("No {} to remove from {} ({:.2f} ms)", key.to_string(), - entry->url_for_logging, + backend->url_for_logging, ms); } }