aboutsummaryrefslogtreecommitdiff
path: root/build/config/operation.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-08 10:56:32 +0200
commiteb264e1892c2a1379fa3bcab9aefea219e8e7138 (patch)
tree1031f859076b2d8f117a2948ec1184a5536f9cbc /build/config/operation.cxx
parent55471ef43695408bae2237374be4637c302d1c87 (diff)
Rework diagnostics verbosity, add quiet mode/option
Diffstat (limited to 'build/config/operation.cxx')
-rw-r--r--build/config/operation.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/build/config/operation.cxx b/build/config/operation.cxx
index 424fd46..9d7c9b3 100644
--- a/build/config/operation.cxx
+++ b/build/config/operation.cxx
@@ -40,7 +40,8 @@ namespace build
{
path f (out_root / src_root_file);
- text << (verb ? "config::save_src_root " : "save ") << f;
+ if (verb)
+ text << (verb >= 2 ? "config::save_src_root " : "save ") << f;
try
{
@@ -68,7 +69,8 @@ namespace build
const dir_path& out_root (root.out_path ());
path f (out_root / config_file);
- text << (verb ? "config::save_config " : "save ") << f;
+ if (verb)
+ text << (verb >= 2 ? "config::save_config " : "save ") << f;
try
{
@@ -151,7 +153,7 @@ namespace build
//
if (a.operation () == default_id)
{
- level4 ([&]{trace << "completely configuring " << out_root;});
+ level5 ([&]{trace << "completely configuring " << out_root;});
// Save src-root.build unless out_root is the same as src.
//
@@ -263,7 +265,7 @@ namespace build
const location&)
{
tracer trace ("disfigure_load");
- level5 ([&]{trace << "skipping " << bf;});
+ level6 ([&]{trace << "skipping " << bf;});
}
static void
@@ -273,7 +275,7 @@ namespace build
action_targets& ts)
{
tracer trace ("disfigure_search");
- level5 ([&]{trace << "collecting " << root.out_path ();});
+ level6 ([&]{trace << "collecting " << root.out_path ();});
ts.push_back (&root);
}
@@ -345,7 +347,7 @@ namespace build
//
if (a.operation () == default_id)
{
- level4 ([&]{trace << "completely disfiguring " << out_root;});
+ level5 ([&]{trace << "completely disfiguring " << out_root;});
m = rmfile (out_root / config_file) || m;
@@ -414,7 +416,7 @@ namespace build
// Reset the dependency state since anything that could have been
// loaded earlier using a previous configuration is now invalid.
//
- level5 ([&]{trace << "resetting dependency state";});
+ level6 ([&]{trace << "resetting dependency state";});
reset ();
}