0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

modules/client/sync: Promote polylog stats overview log message to infolog.

This commit is contained in:
Jason Volk 2018-10-21 00:24:26 -07:00
parent 337810d7e0
commit 5a9c264981

View file

@ -643,11 +643,9 @@ ircd::m::sync::polylog::handle(client &client,
try try
{ {
// Generate individual stats for sections // Generate individual stats for sections
#ifdef RB_DEBUG
thread_local char iecbuf[64], rembuf[128]; thread_local char iecbuf[64], rembuf[128];
sync::stats stats{sp.stats}; sync::stats stats{sp.stats};
stats.timer = timer{}; stats.timer = timer{};
#endif
{ {
json::stack::member member{object, "rooms"}; json::stack::member member{object, "rooms"};
@ -714,8 +712,7 @@ try
}; };
} }
#ifdef RB_DEBUG log::info
log::debug
{ {
log, "polylog %s %s %s wc:%zu in %lu$ms", log, "polylog %s %s %s wc:%zu in %lu$ms",
string(rembuf, ircd::remote(sp.client)), string(rembuf, ircd::remote(sp.client)),
@ -724,7 +721,6 @@ try
sp.stats.flush_count, sp.stats.flush_count,
sp.stats.timer.at<milliseconds>().count() sp.stats.timer.at<milliseconds>().count()
}; };
#endif
return sp.committed; return sp.committed;
} }