From ddb69ca01c3477354e3fb57a0fd9bd17ebb492c8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 2 Mar 2019 11:40:51 -0800 Subject: [PATCH] ircd::m::sync: Improve the debug loghead format and content. --- ircd/m.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ircd/m.cc b/ircd/m.cc index 78ba69e71..0d6be001f 100644 --- a/ircd/m.cc +++ b/ircd/m.cc @@ -540,16 +540,17 @@ ircd::m::sync::loghead(const data &data) return fmt::sprintf { - headbuf, "%s %s %lu:%lu %s chunk:%zu %s in %s", + headbuf, "%s %s %lu:%lu|%lu chunk:%zu sent:%s of %s in %s", remstr, string_view{data.user.user_id}, data.range.first, data.range.second, + vm::current_sequence, + flush_count, + ircd::pretty(iecbuf[1], iec(flush_bytes)), data.out? ircd::pretty(iecbuf[0], iec(flush_bytes + size(data.out->completed()))): string_view{}, - flush_count, - ircd::pretty(iecbuf[1], iec(flush_bytes)), tmstr }; }