Use Logger::stdout()

(cherry picked from commit 8f41847394)
This commit is contained in:
Eelco Dolstra
2020-04-16 18:14:01 +02:00
parent 67a5941472
commit efaffaa9d1
6 changed files with 11 additions and 15 deletions
+2 -3
View File
@@ -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);
}
}
};