diff options
| author | mat <git@matdoes.dev> | 2024-08-15 23:33:23 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-08-15 23:33:23 +0000 |
| commit | e485cf550183445e5f063c6da078c97e9b66497f (patch) | |
| tree | 17827909e5785733e82e7d0279515bd6aa9209e9 /azalea-client/src | |
| parent | 74831abbe4f9d2a2eabbfe0a3a44874d9f49135b (diff) | |
| download | azalea-drasl-e485cf550183445e5f063c6da078c97e9b66497f.tar.xz | |
fix incorrect comment in with_microsoft_access_token docs
Diffstat (limited to 'azalea-client/src')
| -rwxr-xr-x | azalea-client/src/account.rs | 5 | ||||
| -rw-r--r-- | azalea-client/src/client.rs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs index 24023d5b..87573de0 100755 --- a/azalea-client/src/account.rs +++ b/azalea-client/src/account.rs @@ -7,6 +7,7 @@ use azalea_auth::AccessTokenResponse; use bevy_ecs::component::Component; use parking_lot::Mutex; use thiserror::Error; +use tracing::trace; use uuid::Uuid; /// Something that can join Minecraft servers. @@ -135,7 +136,7 @@ impl Account { /// the authentication process (like doing your own caching or /// displaying the Microsoft user code to the user in a different way). /// - /// Note that this will not refresh the token when it expires. + /// This will refresh the given token if it's expired. /// /// ``` /// # use azalea_client::Account; @@ -170,7 +171,7 @@ impl Account { let client = reqwest::Client::new(); if msa.is_expired() { - tracing::trace!("refreshing Microsoft auth token"); + trace!("refreshing Microsoft auth token"); msa = azalea_auth::refresh_ms_auth_token( &client, &msa.data.refresh_token, diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 02d400fd..6cb590df 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -601,7 +601,7 @@ impl Client { } if self.logged_in() { - tracing::debug!( + debug!( "Sending client information (already logged in): {:?}", client_information ); |
