aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-16 17:03:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-16 17:03:05 +0000
commit00d10b6f7874266c7f0635ebb5c11479a6b0b111 (patch)
tree6ca99c4d9d150224711949a7fba43169421e9378
parent1a8e8f7793bd8032f78023a3e5b294787d95e3e7 (diff)
downloadpaludis-00d10b6f7874266c7f0635ebb5c11479a6b0b111.tar.gz
paludis-00d10b6f7874266c7f0635ebb5c11479a6b0b111.tar.xz
Add ll_silent, for when you really don't want log messages
-rw-r--r--paludis/log.cc3
-rw-r--r--paludis/log.hh1
2 files changed, 4 insertions, 0 deletions
diff --git a/paludis/log.cc b/paludis/log.cc
index 37d98f1..38c18c3 100644
--- a/paludis/log.cc
+++ b/paludis/log.cc
@@ -77,6 +77,9 @@ Log::message(const LogLevel l, const std::string & s)
*_implementation->stream << "[WARNING] ";
continue;
+ case ll_silent:
+ throw InternalError(PALUDIS_HERE, "ll_silent used for a message");
+
case last_ll:
break;
}
diff --git a/paludis/log.hh b/paludis/log.hh
index beff0a5..63d8031 100644
--- a/paludis/log.hh
+++ b/paludis/log.hh
@@ -38,6 +38,7 @@ namespace paludis
ll_debug, ///< Debug message
ll_qa, ///< QA messages
ll_warning, ///< Warning message
+ ll_silent, ///< Silent (for set_log_level)
last_ll, ///< Number of items
initial_ll = ll_debug ///< Initial value
};