mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Merge pull request #5918 from tweag/tty-logs
Print build logs when not connected to a TTY
This commit is contained in:
commit
9901cb96c7
1 changed files with 6 additions and 2 deletions
|
@ -270,11 +270,15 @@ void mainWrapped(int argc, char * * argv)
|
||||||
if (legacy) return legacy(argc, argv);
|
if (legacy) return legacy(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
verbosity = lvlNotice;
|
|
||||||
settings.verboseBuild = false;
|
|
||||||
evalSettings.pureEval = true;
|
evalSettings.pureEval = true;
|
||||||
|
|
||||||
setLogFormat("bar");
|
setLogFormat("bar");
|
||||||
|
settings.verboseBuild = false;
|
||||||
|
if (isatty(STDERR_FILENO)) {
|
||||||
|
verbosity = lvlNotice;
|
||||||
|
} else {
|
||||||
|
verbosity = lvlInfo;
|
||||||
|
}
|
||||||
|
|
||||||
Finally f([] { logger->stop(); });
|
Finally f([] { logger->stop(); });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue