aboutsummaryrefslogtreecommitdiff
path: root/src/nix/realisation.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-02 15:57:31 +0100
committerGitHub <noreply@github.com>2023-03-02 15:57:31 +0100
commitb9370fd7a040558cc8c7d5db109fdd3e407ff409 (patch)
tree4f9b64ba19120271c2ef1e2ecc3b104beb36770a /src/nix/realisation.cc
parent85dbf9de8e30d07139d983ee4066332c477ee0f9 (diff)
parentb69a73a2305aaee2a4da73da601dbde3f1ddd7a6 (diff)
Merge pull request #7941 from edolstra/stdout
Check writes to stdout
Diffstat (limited to 'src/nix/realisation.cc')
-rw-r--r--src/nix/realisation.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nix/realisation.cc b/src/nix/realisation.cc
index c9a7157cd..0d3466515 100644
--- a/src/nix/realisation.cc
+++ b/src/nix/realisation.cc
@@ -65,18 +65,16 @@ struct CmdRealisationInfo : BuiltPathsCommand, MixJSON
res.push_back(currentPath);
}
- std::cout << res.dump();
+ logger->cout("%s", res);
}
else {
for (auto & path : realisations) {
if (auto realisation = std::get_if<Realisation>(&path.raw)) {
- std::cout <<
- realisation->id.to_string() << " " <<
- store->printStorePath(realisation->outPath);
+ logger->cout("%s %s",
+ realisation->id.to_string(),
+ store->printStorePath(realisation->outPath));
} else
- std::cout << store->printStorePath(path.path());
-
- std::cout << std::endl;
+ logger->cout("%s", store->printStorePath(path.path()));
}
}
}