summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-05-07 21:07:28 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-05-08 16:12:41 +0200
commitee1314f8561cd7ea3426caa888aae5eb23ab7641 (patch)
tree998b3f28a0b8b70278f16f5656d24e5d7f761e50
parente97a52820f34c4be8e628eea76885b1ded71518b (diff)
downloadccache-ee1314f8561cd7ea3426caa888aae5eb23ab7641.tar.gz
fix: Log expanded secondary storage URL in put/remove
-rw-r--r--src/storage/Storage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/Storage.cpp b/src/storage/Storage.cpp
index e29f856f..09880777 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);
}
}