From 5761827d5bd90efda9ba2183ac30ad73d51de6bf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Apr 2016 16:47:46 +0200 Subject: Show the log tail when a build fails If --no-build-output is given (which will become the default for the "nix" command at least), show the last 10 lines of the build output if the build fails. --- src/libstore/globals.hh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/libstore/globals.hh') diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 8fa49e2dc1..60251ef421 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -78,8 +78,12 @@ struct Settings { instead. */ bool tryFallback; - /* Verbosity level for build output. */ - Verbosity buildVerbosity; + /* 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; /* Maximum number of parallel build jobs. 0 means unlimited. */ unsigned int maxBuildJobs; -- cgit 1.4.1