mirror of
https://github.com/matrix-construct/construct
synced 2024-10-01 05:08:59 +02:00
modules/console: Add missing sequence number to event info output.
This commit is contained in:
parent
4acb76f621
commit
7364a4d9b7
1 changed files with 12 additions and 8 deletions
|
@ -6556,6 +6556,18 @@ console_cmd__event(opt &out, const string_view &line)
|
|||
out << pretty(event)
|
||||
<< std::endl;
|
||||
|
||||
out << std::setw(16) << std::right << "SEQUENCE" << " "
|
||||
<< event_idx
|
||||
<< std::endl;
|
||||
|
||||
if(event.source)
|
||||
{
|
||||
char pbuf[64];
|
||||
out << std::setw(16) << std::right << "JSON SIZE" << " "
|
||||
<< pretty(pbuf, iec(size(string_view{event.source})))
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
if(cached || cached_keys.count())
|
||||
{
|
||||
out << std::setw(16) << std::right << "CACHED" << " ";
|
||||
|
@ -6569,14 +6581,6 @@ console_cmd__event(opt &out, const string_view &line)
|
|||
out << std::endl;
|
||||
}
|
||||
|
||||
if(event.source)
|
||||
{
|
||||
char pbuf[64];
|
||||
out << std::setw(16) << std::right << "JSON SIZE" << " "
|
||||
<< pretty(pbuf, iec(size(string_view{event.source})))
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
if(m::event::auth::is_power_event(event))
|
||||
out << std::setw(16) << std::right << "POWER EVENT" << " "
|
||||
<< std::endl;
|
||||
|
|
Loading…
Reference in a new issue