mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
modules/vm: Move the issuing debuglog msg out of execute().
This commit is contained in:
parent
bd3bf50c34
commit
257b1fa7ff
1 changed files with 12 additions and 7 deletions
|
@ -508,7 +508,18 @@ ircd::m::vm::inject(eval &eval,
|
|||
event, { "content", content },
|
||||
};
|
||||
|
||||
return execute(eval, event);
|
||||
const m::event event_tuple
|
||||
{
|
||||
event
|
||||
};
|
||||
|
||||
if(opts.debuglog_precommit)
|
||||
log::debug
|
||||
{
|
||||
log, "Issuing: %s", pretty_oneline(event_tuple)
|
||||
};
|
||||
|
||||
return execute(eval, event_tuple);
|
||||
}
|
||||
|
||||
enum ircd::m::vm::fault
|
||||
|
@ -539,12 +550,6 @@ try
|
|||
*eval.opts
|
||||
};
|
||||
|
||||
if(eval.copts && eval.copts->debuglog_precommit)
|
||||
log::debug
|
||||
{
|
||||
log, "Issuing: %s", pretty_oneline(event)
|
||||
};
|
||||
|
||||
if(eval.copts && eval.copts->issue)
|
||||
issue_hook(event, eval);
|
||||
|
||||
|
|
Loading…
Reference in a new issue