diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-08 10:56:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-08 10:56:32 +0200 |
commit | eb264e1892c2a1379fa3bcab9aefea219e8e7138 (patch) | |
tree | 1031f859076b2d8f117a2948ec1184a5536f9cbc /build/dist | |
parent | 55471ef43695408bae2237374be4637c302d1c87 (diff) |
Rework diagnostics verbosity, add quiet mode/option
Diffstat (limited to 'build/dist')
-rw-r--r-- | build/dist/module.cxx | 2 | ||||
-rw-r--r-- | build/dist/operation.cxx | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/build/dist/module.cxx b/build/dist/module.cxx index 48c1fd0..0b60fa8 100644 --- a/build/dist/module.cxx +++ b/build/dist/module.cxx @@ -41,7 +41,7 @@ namespace build } const dir_path& out_root (r.out_path ()); - level4 ([&]{trace << "for " << out_root;}); + level5 ([&]{trace << "for " << out_root;}); // Register meta-operation. // diff --git a/build/dist/operation.cxx b/build/dist/operation.cxx index c4d022b..3928759 100644 --- a/build/dist/operation.cxx +++ b/build/dist/operation.cxx @@ -132,7 +132,7 @@ namespace build action a (dist_id, id); - if (verb >= 5) + if (verb >= 6) dump (a); for (void* v: ts) @@ -142,12 +142,12 @@ namespace build if (rs != t.base_scope ().root_scope ()) fail << "out of project target " << t; - level4 ([&]{trace << diag_doing (a, t);}); + level5 ([&]{trace << diag_doing (a, t);}); match (a, t); } - if (verb >= 5) + if (verb >= 6) dump (a); } @@ -283,9 +283,9 @@ namespace build args.push_back (reld.string ().c_str ()); args.push_back (nullptr); - if (verb) + if (verb >= 2) print_process (args); - else + else if (verb) text << "dist -d " << d; try @@ -337,9 +337,9 @@ namespace build args.push_back (reld.string ().c_str ()); args.push_back (nullptr); - if (verb) + if (verb >= 2) print_process (args); - else + else if (verb) text << "dist " << t; try @@ -380,9 +380,9 @@ namespace build else args = {"tar", "-a", "-cf", a.c_str (), pkg.c_str (), nullptr}; - if (verb) + if (verb >= 2) print_process (args); - else + else if (verb) text << args[0] << " " << ap; try |