mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
modules/vm: Log to derror as fallback off opts.errorlog.
This commit is contained in:
parent
f8a2bab2ca
commit
92b5862b86
1 changed files with 5 additions and 0 deletions
|
@ -945,6 +945,11 @@ ircd::m::vm::handle_error(const vm::opts &opts,
|
|||
{
|
||||
log, fmt, std::forward<args>(a)...
|
||||
};
|
||||
else if(~opts.warnlog & code)
|
||||
log::derror
|
||||
{
|
||||
log, fmt, std::forward<args>(a)...
|
||||
};
|
||||
|
||||
if(opts.warnlog & code)
|
||||
log::warning
|
||||
|
|
Loading…
Reference in a new issue