From 4dd97298f5b10ae11cfae68b90de1b3c1b37f565 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 7 Mar 2018 17:32:42 -0800 Subject: [PATCH] ircd::m: Improve pretty_oneline format. --- ircd/m/event.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ircd/m/event.cc b/ircd/m/event.cc index f0407cbc4..af134ecb6 100644 --- a/ircd/m/event.cc +++ b/ircd/m/event.cc @@ -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 << "[ ";