mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
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.
This commit is contained in:
parent
1a9bfdc4ca
commit
1f15441103
3 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue