error log thing

Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
girlbossceo 2023-10-21 12:18:59 -04:00
parent a3d219e401
commit 6e46f56929

View file

@ -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();