0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 15:28:20 +02:00

modules/console: Black out log levels not compiled in.

This commit is contained in:
Jason Volk 2018-05-21 17:09:37 -07:00
parent e5bec58152
commit c22ae75010

View file

@ -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;