aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-16 13:46:37 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-16 18:14:01 +0200
commitefaffaa9d1de38efecb718aa7a99ba1f2e342ade (patch)
tree6e0f4443ddd02c73069e43e0d8a79529eaa00023 /src/nix/eval.cc
parent67a5941472ab56a798556ee2d5afc62fc38a799a (diff)
Use Logger::stdout()
(cherry picked from commit 8f41847394524fcac40d3b5620139ca7e94a18e3)
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r--src/nix/eval.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index 6398fc58e..86a1e8b68 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -55,16 +55,15 @@ struct CmdEval : MixJSON, InstallableCommand
auto v = installable->toValue(*state).first;
PathSet context;
- stopProgressBar();
-
if (raw) {
+ stopProgressBar();
std::cout << state->coerceToString(noPos, *v, context);
} else if (json) {
JSONPlaceholder jsonOut(std::cout);
printValueAsJSON(*state, true, *v, jsonOut, context);
} else {
state->forceValueDeep(*v);
- std::cout << *v << "\n";
+ logger->stdout("%s", *v);
}
}
};