From 71575a2fa22005fabadfb4bc8a928222d6ffed53 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 Apr 2024 12:07:09 +0200 Subject: [PATCH] Debug --- src/libfetchers/fetch-to-store.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libfetchers/fetch-to-store.cc b/src/libfetchers/fetch-to-store.cc index 398286065e6..43b47bb9e94 100644 --- a/src/libfetchers/fetch-to-store.cc +++ b/src/libfetchers/fetch-to-store.cc @@ -46,6 +46,8 @@ StorePath fetchToStore( : store.addToStore( name, *path.accessor, path.path, method, HashAlgorithm::SHA256, {}, filter2, repair); + debug(mode == FetchMode::DryRun ? "hashed '%s'" : "copied '%s' to '%s' %d", path, store.printStorePath(storePath), filter != nullptr); + if (cacheKey && mode == FetchMode::Copy) fetchers::getCache()->add(store, *cacheKey, {}, storePath, true);