summary refs log tree commit diff
path: root/src/libstore/remote-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-04 13:15:29 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-04 13:15:29 +0000
commit052b6fb1495cd606d35cd3eb1806f9fe0019e6ca (patch)
treed1607061f64e6f1900dc26cdcfdef80b0896fb7c /src/libstore/remote-store.cc
parent1e16d2065503e213189d58db14de893f51545597 (diff)
downloadguix-052b6fb1495cd606d35cd3eb1806f9fe0019e6ca.tar.gz
* Pass the verbosity level to the worker.
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r--src/libstore/remote-store.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index d8b629af63..11e6c42fab 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -32,6 +32,10 @@ RemoteStore::RemoteStore()
     if (worker == "")
         worker = nixBinDir + "/nix-worker";
 
+    string verbosityArg = "-";
+    for (int i = 1; i < verbosity; ++i)
+        verbosityArg += "v";
+
     child = fork();
     
     switch (child) {
@@ -57,8 +61,10 @@ RemoteStore::RemoteStore()
                 throw SysError("dupping stderr");
             close(fdDebug);
             
-            execlp(worker.c_str(), worker.c_str(),
-                "-vvv", "--slave", NULL);
+            execlp(worker.c_str(), worker.c_str(), "--slave",
+                /* hacky - must be at the end */
+                verbosityArg == "-" ? NULL : verbosityArg.c_str(),
+                NULL);
 
             throw SysError(format("executing `%1%'") % worker);