about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2018-10-22T10·14+0200
committerLinus Heckemann <git@sphalerite.org>2018-10-23T14·54+0200
commita25abe823fd2719eee09c28ccddf6d9b1c13a2e1 (patch)
treeca4e093d7ffc9bc3c424a02444b27aae8684c9f7 /src
parent7a9ac91a43e1e05e9df9d1b9b4a2cf322d62bb1c (diff)
Promote log-lines to a fully-qualified option
This allows commands like

nix build --log-lines 30 nixpkgs.hello

in order to obtain more information in case of a failure.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/globals.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index cf4ae63cdc2f..6b3e204536f1 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -82,9 +82,9 @@ public:
     /* Whether to show build log output in real time. */
     bool verboseBuild = true;
 
-    /* If verboseBuild is false, the number of lines of the tail of
-       the log to show if a build fails. */
-    size_t logLines = 10;
+    Setting<size_t> logLines{this, 10, "log-lines",
+        "If verbose-build is false, the number of lines of the tail of "
+        "the log to show if a build fails."};
 
     MaxBuildJobsSetting maxBuildJobs{this, 1, "max-jobs",
         "Maximum number of parallel build jobs. \"auto\" means use number of cores.",