0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 00:08:22 +02:00

modules/vm: Log to derror as fallback off opts.errorlog.

This commit is contained in:
Jason Volk 2019-05-13 12:31:34 -07:00
parent f8a2bab2ca
commit 92b5862b86

View file

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