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

ircd:Ⓜ️ Improve pretty_oneline format.

This commit is contained in:
Jason Volk 2018-03-07 17:32:42 -08:00
parent f1a45cc9df
commit 4dd97298f5

View file

@ -310,20 +310,19 @@ ircd::m::pretty_oneline(const event &event)
"event_id",
"room_id",
"sender",
"depth",
};
s << ':';
s << json::get<"depth"_>(event) << " :";
json::for_each(event, top_keys, out);
const auto &auth_events{json::get<"auth_events"_>(event)};
s << "pa:" << auth_events.count() << " ";
s << "A:" << auth_events.count() << " ";
const auto &prev_states{json::get<"prev_state"_>(event)};
s << "ps:" << prev_states.count() << " ";
s << "S:" << prev_states.count() << " ";
const auto &prev_events{json::get<"prev_events"_>(event)};
s << "pe:" << prev_events.count() << " ";
s << "E:" << prev_events.count() << " ";
const auto &hashes{json::get<"hashes"_>(event)};
s << "[ ";