aboutsummaryrefslogtreecommitdiff
path: root/src/nix/ls.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/ls.cc
parent09f5975c6a0d8706b22f15e4c5998018e56484ae (diff)
Get rid of some unchecked calls to std::cout
Diffstat (limited to 'src/nix/ls.cc')
-rw-r--r--src/nix/ls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/ls.cc b/src/nix/ls.cc
index e964b01b3..c990a303c 100644
--- a/src/nix/ls.cc
+++ b/src/nix/ls.cc
@@ -93,7 +93,7 @@ struct MixLs : virtual Args, MixJSON
if (json) {
if (showDirectory)
throw UsageError("'--directory' is useless with '--json'");
- std::cout << listNar(accessor, path, recursive);
+ logger->cout("%s", listNar(accessor, path, recursive));
} else
listText(accessor);
}