Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 30, 2024
1 parent 9c10fcf commit 71575a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libfetchers/fetch-to-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 71575a2

Please sign in to comment.