aboutsummaryrefslogtreecommitdiff
path: root/src/nix/realisation.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-02 15:02:24 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-03-02 15:02:24 +0100
commitb69a73a2305aaee2a4da73da601dbde3f1ddd7a6 (patch)
tree4f9b64ba19120271c2ef1e2ecc3b104beb36770a /src/nix/realisation.cc
parent09f5975c6a0d8706b22f15e4c5998018e56484ae (diff)
Get rid of some unchecked calls to std::cout
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()));
}
}
}