From e485cf550183445e5f063c6da078c97e9b66497f Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 15 Aug 2024 23:33:23 +0000 Subject: fix incorrect comment in with_microsoft_access_token docs --- azalea-auth/src/cache.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea-auth/src/cache.rs') 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, Cache Ok(cache) } async fn set_entire_cache(cache_file: &Path, cache: Vec) -> 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() ); -- cgit v1.2.3