Skip to content

Commit 38cbf24

Browse files
committed
Add back homeserver logging for sso login
We can't use `.await` inside `info!()` because of rust-lang/rust#93274
1 parent 642c4f5 commit 38cbf24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/matrix-sdk/src/client.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,9 @@ impl Client {
952952
/// The number of times the SSO server will try to bind to a random port
953953
const SSO_SERVER_BIND_TRIES: u8 = 10;
954954

955+
let homeserver = self.homeserver().await;
956+
info!("Logging in to {}", homeserver);
957+
955958
let (signal_tx, signal_rx) = tokio::sync::oneshot::channel();
956959
let (data_tx, data_rx) = tokio::sync::oneshot::channel();
957960
let data_tx_mutex = Arc::new(std::sync::Mutex::new(Some(data_tx)));
@@ -1108,6 +1111,9 @@ impl Client {
11081111
device_id: Option<&str>,
11091112
initial_device_display_name: Option<&str>,
11101113
) -> Result<login::v3::Response> {
1114+
let homeserver = self.homeserver().await;
1115+
info!("Logging in to {}", homeserver);
1116+
11111117
let request = assign!(
11121118
login::v3::Request::new(
11131119
login::v3::LoginInfo::Token(login::v3::Token::new(token)),

0 commit comments

Comments
 (0)