Commit 573d8b06 authored by Dominik Charousset's avatar Dominik Charousset

Remove superfluous asserts

With the QUIET log level now starting at 0, we no longer need to check
for negative log levels.
parent 7ec4be04
...@@ -333,7 +333,6 @@ actor_id logger::thread_local_aid(actor_id aid) { ...@@ -333,7 +333,6 @@ actor_id logger::thread_local_aid(actor_id aid) {
} }
void logger::log(event&& x) { void logger::log(event&& x) {
CAF_ASSERT(x->level >= 0 && x->level <= 4);
if (cfg_.inline_output) if (cfg_.inline_output)
handle_event(x); handle_event(x);
else else
...@@ -352,7 +351,6 @@ logger* logger::current_logger() { ...@@ -352,7 +351,6 @@ logger* logger::current_logger() {
} }
bool logger::accepts(int level, string_view cname) { bool logger::accepts(int level, string_view cname) {
CAF_ASSERT(level >= 0 && level <= 4);
if (level > cfg_.verbosity) if (level > cfg_.verbosity)
return false; return false;
if (!component_filter.empty()) { if (!component_filter.empty()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment