* The default verbosity level of all Nix commands is now lvlInfo.
* Builder output is written to standard error by default. * The option `-B' is gone. * The option `-Q' suppresses builder output. The result of this is that most Nix invocations shouldn't need any flags w.r.t. logging.
This commit is contained in:
parent
937ce0cd21
commit
1eddee59f2
6 changed files with 13 additions and 15 deletions
|
@ -126,7 +126,9 @@ static void initAndRun(int argc, char * * argv)
|
|||
setLogType(*i);
|
||||
}
|
||||
else if (arg == "--build-output" || arg == "-B")
|
||||
buildVerbosity = lvlError; /* lowest */
|
||||
; /* !!! obsolete - remove eventually */
|
||||
else if (arg == "--no-build-output" || arg == "-Q")
|
||||
buildVerbosity = lvlVomit;
|
||||
else if (arg == "--help") {
|
||||
printHelp();
|
||||
return;
|
||||
|
|
|
@ -12,6 +12,6 @@ bool keepGoing = false;
|
|||
|
||||
bool tryFallback = false;
|
||||
|
||||
Verbosity buildVerbosity = lvlDebug;
|
||||
Verbosity buildVerbosity = lvlInfo;
|
||||
|
||||
unsigned int maxBuildJobs = 1;
|
||||
|
|
|
@ -243,7 +243,7 @@ void writeStringToFile(const Path & path, const string & s)
|
|||
|
||||
|
||||
LogType logType = ltPretty;
|
||||
Verbosity verbosity = lvlError;
|
||||
Verbosity verbosity = lvlInfo;
|
||||
|
||||
static int nestingLevel = 0;
|
||||
|
||||
|
|
|
@ -704,9 +704,6 @@ static void opDefaultExpr(Globals & globals,
|
|||
|
||||
void run(Strings args)
|
||||
{
|
||||
/* Use a higher default verbosity (lvlInfo). */
|
||||
verbosity = (Verbosity) ((int) verbosity + 1);
|
||||
|
||||
Strings opFlags, opArgs;
|
||||
Operation op = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue