error log thing
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
a3d219e401
commit
6e46f56929
1 changed files with 5 additions and 2 deletions
|
@ -21,7 +21,7 @@ use std::{
|
||||||
collections::{hash_map, BTreeMap, HashMap, HashSet},
|
collections::{hash_map, BTreeMap, HashMap, HashSet},
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
use tracing::debug;
|
use tracing::{debug, error};
|
||||||
|
|
||||||
/// # `POST /_matrix/client/r0/keys/upload`
|
/// # `POST /_matrix/client/r0/keys/upload`
|
||||||
///
|
///
|
||||||
|
@ -400,7 +400,10 @@ pub(crate) async fn get_keys_helper<F: Fn(&UserId) -> bool>(
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.map_err(|e| Error::BadServerResponse("Query took too long")),
|
.map_err(|e| {
|
||||||
|
error!("get_keys_helper query took too long: {}", e);
|
||||||
|
Error::BadServerResponse("get_keys_helper query took too long")
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue