0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

modules/m_room_bootstrap: Additional infolog messages during process.

modules/m_room_bootstrap: Suppress already-evaluated warnings.
This commit is contained in:
Jason Volk 2019-09-04 13:15:25 -07:00
parent 8d2cc457f1
commit 6586a9e084
2 changed files with 27 additions and 2 deletions

View file

@ -103,7 +103,7 @@ try
if(run::level != run::level::RUN)
return;
log::debug
log::info
{
log, "Starting initial resynchronization from other servers..."
};
@ -315,6 +315,7 @@ try
m::vm::opts vmopts;
vmopts.infolog_accept = true;
vmopts.warnlog &= ~vm::fault::EXISTS;
vmopts.node_id = hint;
m::vm::eval eval
{

View file

@ -355,6 +355,14 @@ ircd::m::bootstrap::backfill(const string_view &host,
const m::event::id &event_id)
try
{
log::info
{
log, "Requesting recent events for %s from %s at %s",
string_view{room_id},
host,
string_view{event_id},
};
const unique_buffer<mutable_buffer> buf
{
16_KiB // headers in and out
@ -397,6 +405,7 @@ try
m::vm::opts vmopts;
vmopts.nothrows = -1;
vmopts.warnlog &= ~vm::fault::EXISTS;
vmopts.fetch_state_check = false;
vmopts.fetch_prev_check = false;
vmopts.infolog_accept = false;
@ -426,11 +435,18 @@ void
ircd::m::bootstrap::eval_state(const json::array &state)
try
{
log::info
{
log, "Evaluating %zu state events...",
state.size(),
};
m::vm::opts opts;
opts.nothrows = -1;
opts.warnlog &= ~vm::fault::EXISTS;
opts.fetch_prev_check = false;
opts.fetch_state_check = false;
opts.infolog_accept = false;
opts.infolog_accept = true;
m::vm::eval
{
state, opts
@ -455,7 +471,14 @@ try
{
fetch_keys(auth_chain);
log::info
{
log, "Evaluating %zu authentication events...",
auth_chain.size(),
};
m::vm::opts opts;
opts.warnlog &= ~vm::fault::EXISTS;
opts.infolog_accept = true;
opts.fetch = false;
m::vm::eval
@ -479,6 +502,7 @@ void
ircd::m::bootstrap::eval_lazy_chain(const json::array &auth_chain)
{
m::vm::opts opts;
opts.warnlog &= ~vm::fault::EXISTS;
opts.infolog_accept = true;
opts.fetch = false;