0
0
Fork 0
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:
Jason Volk 2019-03-25 20:13:03 -07:00
parent bd3bf50c34
commit 257b1fa7ff

View file

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