From eb264e1892c2a1379fa3bcab9aefea219e8e7138 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Sep 2015 10:56:32 +0200 Subject: Rework diagnostics verbosity, add quiet mode/option --- build/cli/module.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build/cli/module.cxx') diff --git a/build/cli/module.cxx b/build/cli/module.cxx index f8d1522..240aaa7 100644 --- a/build/cli/module.cxx +++ b/build/cli/module.cxx @@ -36,7 +36,7 @@ namespace build bool first) { tracer trace ("cli::init"); - level4 ([&]{trace << "for " << base.out_path ();}); + level5 ([&]{trace << "for " << base.out_path ();}); // Make sure the cxx module has been loaded since we need its // targets types (?xx{}). Note that we don't try to load it @@ -104,9 +104,9 @@ namespace build const string& cli (as (p.first)); const char* args[] = {cli.c_str (), "--version", nullptr}; - if (verb) + if (verb >= 2) print_process (args); - else + else if (verb) text << "test " << cli; string ver; @@ -141,7 +141,7 @@ namespace build throw failed (); } - if (verb) + if (verb >= 2) text << cli << " " << ver; } } -- cgit v1.1