]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Log expanded secondary storage URL in put/remove
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 7 May 2022 19:07:28 +0000 (21:07 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 8 May 2022 14:12:41 +0000 (16:12 +0200)
src/storage/Storage.cpp

index e29f856f3daf1766cf0598b4d69a91d8c334ef23..098807779968f745474efd8644e0503f0611cbb9 100644 (file)
@@ -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);
     }
   }