aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth/src/cache.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-08-15 23:33:23 +0000
committermat <git@matdoes.dev>2024-08-15 23:33:23 +0000
commite485cf550183445e5f063c6da078c97e9b66497f (patch)
tree17827909e5785733e82e7d0279515bd6aa9209e9 /azalea-auth/src/cache.rs
parent74831abbe4f9d2a2eabbfe0a3a44874d9f49135b (diff)
downloadazalea-drasl-e485cf550183445e5f063c6da078c97e9b66497f.tar.xz
fix incorrect comment in with_microsoft_access_token docs
Diffstat (limited to 'azalea-auth/src/cache.rs')
-rwxr-xr-xazalea-auth/src/cache.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-auth/src/cache.rs b/azalea-auth/src/cache.rs
index 85d25f93..210dbab6 100755
--- a/azalea-auth/src/cache.rs
+++ b/azalea-auth/src/cache.rs
@@ -6,6 +6,7 @@ use std::time::{SystemTime, UNIX_EPOCH};
use thiserror::Error;
use tokio::fs::File;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
+use tracing::{debug, trace};
#[derive(Debug, Error)]
pub enum CacheError {
@@ -82,13 +83,13 @@ async fn get_entire_cache(cache_file: &Path) -> Result<Vec<CachedAccount>, Cache
Ok(cache)
}
async fn set_entire_cache(cache_file: &Path, cache: Vec<CachedAccount>) -> Result<(), CacheError> {
- tracing::trace!("saving cache: {:?}", cache);
+ trace!("saving cache: {:?}", cache);
if !cache_file.exists() {
let cache_file_parent = cache_file
.parent()
.expect("Cache file is root directory and also doesn't exist.");
- tracing::debug!(
+ debug!(
"Making cache file parent directory at {}",
cache_file_parent.to_string_lossy()
);