aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index fe7469be4..5158c3902 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -270,11 +270,15 @@ void mainWrapped(int argc, char * * argv)
if (legacy) return legacy(argc, argv);
}
- verbosity = lvlNotice;
- settings.verboseBuild = false;
evalSettings.pureEval = true;
setLogFormat("bar");
+ settings.verboseBuild = false;
+ if (isatty(STDERR_FILENO)) {
+ verbosity = lvlNotice;
+ } else {
+ verbosity = lvlInfo;
+ }
Finally f([] { logger->stop(); });