0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:vm: Add event_id and share sequence to the loghead; minor cleanup.

This commit is contained in:
Jason Volk 2019-03-28 16:00:54 -07:00
parent 4b816f8c74
commit f340e44692
2 changed files with 8 additions and 3 deletions

View file

@ -1076,12 +1076,17 @@ ircd::m::vm::loghead(const mutable_buffer &buf,
{ {
return fmt::sprintf return fmt::sprintf
{ {
buf, "vm[%lu:%lu:%lu] eval[%lu] id:%lu", buf, "vm:%lu:%lu:%lu eval:%lu seq:%lu share:%lu:%lu] %s",
sequence::uncommitted, sequence::uncommitted,
sequence::committed, sequence::committed,
sequence::retired, sequence::retired,
sequence::get(eval),
eval.id, eval.id,
sequence::get(eval),
eval.sequence_shared[0],
eval.sequence_shared[1],
eval.event_?
string_view{json::get<"event_id"_>(*eval.event_)}:
"<unidentified>"_sv,
}; };
} }