mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/console: Add readback to log mask/unmask cmds.
This commit is contained in:
parent
87ce85e521
commit
0501b52d31
1 changed files with 10 additions and 0 deletions
|
@ -598,6 +598,11 @@ bool
|
|||
console_cmd__log__mask(opt &out, const string_view &line)
|
||||
{
|
||||
log::console_mask(tokens<std::vector>(line, ' '));
|
||||
|
||||
out << std::endl;
|
||||
console_cmd__log(out, {});
|
||||
out << std::endl;
|
||||
console_cmd__log__level(out, {});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -605,6 +610,11 @@ bool
|
|||
console_cmd__log__unmask(opt &out, const string_view &line)
|
||||
{
|
||||
log::console_unmask(tokens<std::vector>(line, ' '));
|
||||
|
||||
out << std::endl;
|
||||
console_cmd__log(out, {});
|
||||
out << std::endl;
|
||||
console_cmd__log__level(out, {});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue