From c55e93ca23eae608f2ff80e940f35f5daa6b4f7f Mon Sep 17 00:00:00 2001 From: Qyriad Date: Sat, 1 Jun 2024 18:25:16 -0600 Subject: [PATCH] Revert "nix3: always use the same verbosity default (info)" This reverts commit d0390b5cf2d232febaa89aa6d8b07c547513a460. Other parts of the codebase will need to be adjusted in response to a default verbosity change. Let's just push this to after 2.90. Fixes #362. Fixes #367. Change-Id: I04648473579146851bda41d764adc1ef954c355d --- src/nix/main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nix/main.cc b/src/nix/main.cc index 5d92cfd76..074a59049 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -365,6 +365,11 @@ void mainWrapped(int argc, char * * argv) setLogFormat("bar"); settings.verboseBuild = false; + if (isatty(STDERR_FILENO)) { + verbosity = lvlNotice; + } else { + verbosity = lvlInfo; + } NixArgs args;