diff options
author | alois31 <alois1@gmx-topmail.de> | 2024-09-06 17:07:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-09-06 17:07:16 +0000 |
commit | 991d8ce2752d117c2431ddf8df454bda6df16a77 (patch) | |
tree | 56c8f42825624311c26cb9db9131d24f59e08fc3 | |
parent | 72589e703258e5cb4de091390291ff84c3a22bf2 (diff) | |
parent | de552c42cb304ff320bc042a37b2f46ecd20c63b (diff) |
Merge "Stop the logger in legacy commands again" into main
-rw-r--r-- | src/nix/main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc index 05c40db03..4a3a7b4e7 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -353,6 +353,9 @@ void mainWrapped(int argc, char * * argv) argv++; argc--; } + // Clean up the progress bar if shown using --log-format in a legacy command too. + // Otherwise, this is a harmless no-op. + Finally f([] { logger->pause(); }); { auto legacy = (*RegisterLegacyCommand::commands)[programName]; if (legacy) return legacy(argc, argv); @@ -361,7 +364,6 @@ void mainWrapped(int argc, char * * argv) evalSettings.pureEval = true; setLogFormat(LogFormat::bar); - Finally f([] { logger->pause(); }); settings.verboseBuild = false; // FIXME: stop messing about with log verbosity depending on if it is interactive use if (isatty(STDERR_FILENO)) { |