mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/m_vm_fetch: Improve logging of state fetch.
This commit is contained in:
parent
57546ae788
commit
baadb3d44a
1 changed files with 8 additions and 1 deletions
|
@ -346,6 +346,13 @@ ircd::m::vm::fetch::state(const event &event,
|
||||||
if(at<"depth"_>(event) > sounding_depth)
|
if(at<"depth"_>(event) > sounding_depth)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
log::dwarning
|
||||||
|
{
|
||||||
|
log, "%s fetching possible missing state in %s",
|
||||||
|
loghead(eval),
|
||||||
|
string_view{room.room_id},
|
||||||
|
};
|
||||||
|
|
||||||
auto futures
|
auto futures
|
||||||
{
|
{
|
||||||
state_fetch(event, eval, room)
|
state_fetch(event, eval, room)
|
||||||
|
@ -359,7 +366,7 @@ ircd::m::vm::fetch::state(const event &event,
|
||||||
ctx::when_all(begin(futures), end(futures))
|
ctx::when_all(begin(futures), end(futures))
|
||||||
};
|
};
|
||||||
|
|
||||||
log::info
|
log::warning
|
||||||
{
|
{
|
||||||
log, "%s fetching %zu missing state events in %s",
|
log, "%s fetching %zu missing state events in %s",
|
||||||
loghead(eval),
|
loghead(eval),
|
||||||
|
|
Loading…
Reference in a new issue