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/remote-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/remote-store.cc') diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index 831f4a83e029..4663291b9171 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -120,7 +120,7 @@ void RemoteStore::setOptions(ref conn) if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 2) conn->to << settings.useBuildHook; if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 4) - conn->to << settings.buildVerbosity + conn->to << (settings.verboseBuild ? lvlError : lvlVomit) << 0 // obsolete log type << 0 /* obsolete print build trace */; if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 6) -- cgit 1.4.1