1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 09:49:36 +01:00

Fix writeToStdout()

This commit is contained in:
Eelco Dolstra 2021-11-03 22:08:27 +01:00
parent c4f0508ef5
commit f8a1b81a79

View file

@ -831,6 +831,12 @@ public:
void writeToStdout(std::string_view s) override
{
auto state(state_.lock());
if (state->active)
// Note: this assumes that stdout == stderr == a terminal
draw(*state, s);
else
Logger::writeToStdout(s);
}