about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-08-18T12·19+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-08-18T12·19+0000
commit1eddee59f22b56a4b098921083780990dc1f0468 (patch)
tree5a5bfa90422920dc06961f8c362876e31c7b16ee /src
parent937ce0cd214c12276a2c373b515dc2541d1582fd (diff)
* 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.

Diffstat (limited to 'src')
-rw-r--r--src/libmain/shared.cc4
-rw-r--r--src/libstore/globals.cc2
-rw-r--r--src/libutil/util.cc2
-rw-r--r--src/nix-env/main.cc3
4 files changed, 5 insertions, 6 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 6aad03a37a98..3f9b2a10d4ea 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -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;
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc
index aad26501b735..44794d147a77 100644
--- a/src/libstore/globals.cc
+++ b/src/libstore/globals.cc
@@ -12,6 +12,6 @@ bool keepGoing = false;
 
 bool tryFallback = false;
 
-Verbosity buildVerbosity = lvlDebug;
+Verbosity buildVerbosity = lvlInfo;
 
 unsigned int maxBuildJobs = 1;
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 2a2dffb25d6f..a25665e4a88c 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -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;
 
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 8e5ba67e9bb2..3700f44899b9 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -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;