aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-11-30 20:23:13 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-11-30 20:23:13 +0000
commit1f15441103caab1b41317a6107fc2560eb109a4a (patch)
treeadaf4a30cb0e5789c9b919316001a64fd51dfd00 /src/libstore/store-api.cc
parent1a9bfdc4ca0c2786b02801540432badbafa3a811 (diff)
Tidy up the logging
Use the macros more, so we properly skip work when the log level excludes. Also log the daemon operation number on the daemon side.
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 71350906e..aab4ce94c 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -1079,7 +1079,7 @@ std::map<StorePath, StorePath> copyPaths(
nrFailed++;
if (!settings.keepGoing)
throw e;
- logger->log(lvlError, fmt("could not copy %s: %s", dstStore.printStorePath(storePath), e.what()));
+ printMsg(lvlError, "could not copy %s: %s", dstStore.printStorePath(storePath), e.what());
showProgress();
return;
}