mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Replace LogFormat::barWithLogs with a setting
This will make it easier to add more settings to the progress bar.
This commit is contained in:
parent
99bb7aaf80
commit
4979bd468a
6 changed files with 25 additions and 28 deletions
|
|
@ -15,8 +15,6 @@ LogFormat parseLogFormat(const std::string & logFormatStr) {
|
|||
return LogFormat::internalJSON;
|
||||
else if (logFormatStr == "bar")
|
||||
return LogFormat::bar;
|
||||
else if (logFormatStr == "bar-with-logs")
|
||||
return LogFormat::barWithLogs;
|
||||
throw Error("option 'log-format' has an invalid value '%s'", logFormatStr);
|
||||
}
|
||||
|
||||
|
|
@ -30,8 +28,6 @@ Logger * makeDefaultLogger() {
|
|||
return makeJSONLogger(*makeSimpleLogger(true));
|
||||
case LogFormat::bar:
|
||||
return makeProgressBar();
|
||||
case LogFormat::barWithLogs:
|
||||
return makeProgressBar(true);
|
||||
default:
|
||||
abort();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue