mirror of
https://github.com/matrix-construct/construct
synced 2024-11-10 20:11:07 +01:00
modules/vm: Minor cleanup.
This commit is contained in:
parent
4199d5026c
commit
14bbe13c45
1 changed files with 14 additions and 5 deletions
|
@ -440,9 +440,12 @@ try
|
||||||
};
|
};
|
||||||
|
|
||||||
if(eval.copts->debuglog_precommit)
|
if(eval.copts->debuglog_precommit)
|
||||||
log.debug("injecting event(mark +%ld) %s",
|
log::debug
|
||||||
|
{
|
||||||
|
log, "injecting event(mark +%ld) %s",
|
||||||
vm::current_sequence,
|
vm::current_sequence,
|
||||||
pretty_oneline(event));
|
pretty_oneline(event)
|
||||||
|
};
|
||||||
|
|
||||||
check_size(event);
|
check_size(event);
|
||||||
commit_hook(event);
|
commit_hook(event);
|
||||||
|
@ -484,10 +487,16 @@ try
|
||||||
vm::accept(accepted);
|
vm::accept(accepted);
|
||||||
|
|
||||||
if(opts.debuglog_accept)
|
if(opts.debuglog_accept)
|
||||||
log.debug("%s", pretty_oneline(event));
|
log::debug
|
||||||
|
{
|
||||||
|
log, "%s", pretty_oneline(event)
|
||||||
|
};
|
||||||
|
|
||||||
if(opts.infolog_accept)
|
if(opts.infolog_accept)
|
||||||
log.info("%s", pretty_oneline(event));
|
log::debug
|
||||||
|
{
|
||||||
|
log, "%s", pretty_oneline(event)
|
||||||
|
};
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue