From 5744a500d66214f6d833100924a2f7362b7b82a7 Mon Sep 17 00:00:00 2001 From: Ben Radford Date: Wed, 26 Jul 2023 14:33:47 +0100 Subject: [PATCH] Use debug instead of writing directly to stderr. --- src/libstore/local-overlay-store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstore/local-overlay-store.cc b/src/libstore/local-overlay-store.cc index 76c3adf5f..dfd2f0d34 100644 --- a/src/libstore/local-overlay-store.cc +++ b/src/libstore/local-overlay-store.cc @@ -196,9 +196,9 @@ void LocalOverlayStore::deleteStorePath(const Path & path, uint64_t & bytesFreed auto upperPath = toUpperPath(storePath); if (pathExists(upperPath)) { - std::cerr << " upper exists" << std::endl; + debug("upper exists: %s", path); if (lowerStore->isValidPath(storePath)) { - std::cerr << " lower exists" << std::endl; + debug("lower exists: %s", storePath.to_string()); // Path also exists in lower store. // We must delete via upper layer to avoid creating a whiteout. deletePath(upperPath, bytesFreed);