diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-03-02 15:02:24 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-03-02 15:02:24 +0100 |
commit | b69a73a2305aaee2a4da73da601dbde3f1ddd7a6 (patch) | |
tree | 4f9b64ba19120271c2ef1e2ecc3b104beb36770a /src/nix/realisation.cc | |
parent | 09f5975c6a0d8706b22f15e4c5998018e56484ae (diff) |
Get rid of some unchecked calls to std::cout
Diffstat (limited to 'src/nix/realisation.cc')
-rw-r--r-- | src/nix/realisation.cc | 12 |
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())); } } } |