aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-03-08 03:19:11 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-03-08 03:19:11 +0000
commitabbaadc7873e3bee76923f015ae9f5fe1f6a1f46 (patch)
tree5f973c42cfc72280fabb3b8426769589fce300a4
parent5bf1ffd28b491b8c562c3a353bba7ab1b5312a5a (diff)
downloadpaludis-abbaadc7873e3bee76923f015ae9f5fe1f6a1f46.tar.gz
paludis-abbaadc7873e3bee76923f015ae9f5fe1f6a1f46.tar.xz
Add qa log level, use it by default
-rw-r--r--src/command_line.cc5
-rw-r--r--src/paludis.cc4
-rw-r--r--src/qualudis/qualudis.cc4
-rw-r--r--src/qualudis/qualudis_command_line.cc1
4 files changed, 10 insertions, 4 deletions
diff --git a/src/command_line.cc b/src/command_line.cc
index 8639315..4325ab3 100644
--- a/src/command_line.cc
+++ b/src/command_line.cc
@@ -34,9 +34,10 @@ CommandLine::CommandLine() :
general_args(this, "General options"),
a_log_level(&general_args, "log-level", '\0', "Specify the log level",
paludis::args::EnumArg::EnumArgOptions("debug", "Show debug output (noisy)")
+ ("qa", "Show QA messages and warnings only")
("warning", "Show warnings only")
- ("silent", "Suppress all log messages"),
- "warning"),
+ ("silent", "Suppress all log messages"),
+ "qa"),
a_no_colour(&general_args, "no-colour", 'c', "Do not use colour"),
a_no_color(&a_no_colour, "no-color"),
diff --git a/src/paludis.cc b/src/paludis.cc
index d9ec6ea..7840733 100644
--- a/src/paludis.cc
+++ b/src/paludis.cc
@@ -68,9 +68,11 @@ main(int argc, char *argv[])
throw DoHelp();
if (! CommandLine::get_instance()->a_log_level.specified())
- p::Log::get_instance()->set_log_level(p::ll_warning);
+ p::Log::get_instance()->set_log_level(p::ll_qa);
else if (CommandLine::get_instance()->a_log_level.argument() == "debug")
p::Log::get_instance()->set_log_level(p::ll_debug);
+ else if (CommandLine::get_instance()->a_log_level.argument() == "qa")
+ p::Log::get_instance()->set_log_level(p::ll_qa);
else if (CommandLine::get_instance()->a_log_level.argument() == "warning")
p::Log::get_instance()->set_log_level(p::ll_warning);
else if (CommandLine::get_instance()->a_log_level.argument() == "silent")
diff --git a/src/qualudis/qualudis.cc b/src/qualudis/qualudis.cc
index fa9be90..782f785 100644
--- a/src/qualudis/qualudis.cc
+++ b/src/qualudis/qualudis.cc
@@ -404,9 +404,11 @@ int main(int argc, char *argv[])
throw DoHelp();
if (! QualudisCommandLine::get_instance()->a_log_level.specified())
- Log::get_instance()->set_log_level(ll_warning);
+ Log::get_instance()->set_log_level(ll_qa);
else if (QualudisCommandLine::get_instance()->a_log_level.argument() == "debug")
Log::get_instance()->set_log_level(ll_debug);
+ else if (QualudisCommandLine::get_instance()->a_log_level.argument() == "qa")
+ Log::get_instance()->set_log_level(ll_qa);
else if (QualudisCommandLine::get_instance()->a_log_level.argument() == "warning")
Log::get_instance()->set_log_level(ll_warning);
else if (QualudisCommandLine::get_instance()->a_log_level.argument() == "silent")
diff --git a/src/qualudis/qualudis_command_line.cc b/src/qualudis/qualudis_command_line.cc
index 585866d..94ee5a1 100644
--- a/src/qualudis/qualudis_command_line.cc
+++ b/src/qualudis/qualudis_command_line.cc
@@ -32,6 +32,7 @@ QualudisCommandLine::QualudisCommandLine() :
a_verbose(&check_options, "verbose", 'v', "Be verbose"),
a_log_level(&check_options, "log-level", 'L', "Specify the log level",
paludis::args::EnumArg::EnumArgOptions("debug", "Show debug output (noisy)")
+ ("qa", "Show QA messages and warnings only")
("warning", "Show warnings only")
("silent", "Suppress all log messages"),
"warning"),