mirror of
https://github.com/matrix-construct/construct
synced 2024-09-30 12:48:54 +02:00
modules/console: Black out log levels not compiled in.
This commit is contained in:
parent
e5bec58152
commit
c22ae75010
1 changed files with 5 additions and 1 deletions
|
@ -402,7 +402,11 @@ console_cmd__log__level(opt &out, const string_view &line)
|
|||
};
|
||||
|
||||
for(int i(0); i < num_of<log::facility>(); ++i)
|
||||
if(i <= level)
|
||||
if(i > RB_LOG_LEVEL)
|
||||
{
|
||||
out << "[\033[1;40m-\033[0m]: " << reflect(log::facility(i)) << std::endl;
|
||||
}
|
||||
else if(i <= level)
|
||||
{
|
||||
console_enable(log::facility(i));
|
||||
out << "[\033[1;42m+\033[0m]: " << reflect(log::facility(i)) << std::endl;
|
||||
|
|
Loading…
Reference in a new issue