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 13:47:59 +0200
commit8f41847394524fcac40d3b5620139ca7e94a18e3 (patch)
treeca033aaa69128461f3059458803b6178d29fd3e7 /src/nix/eval.cc
parent696c026006a6ac46adc990ed5cb0f31535bac076 (diff)
Use Logger::stdout()
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 f23625161..96ca83325 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);
}
}
};