From d4d4ba054f4da0dcf550524523792ee79268d40d Mon Sep 17 00:00:00 2001 From: Sculas Date: Mon, 17 Oct 2022 20:18:25 +0200 Subject: refactor: remove println statements (#31) This PR removes all println statements and logs them on trace level instead. Normally, libraries shouldn't print to stdout using println, since there's no control over them. --- azalea-auth/src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-auth/src/cache.rs') diff --git a/azalea-auth/src/cache.rs b/azalea-auth/src/cache.rs index 8af9e171..e84c60fd 100644 --- a/azalea-auth/src/cache.rs +++ b/azalea-auth/src/cache.rs @@ -71,7 +71,7 @@ async fn get_entire_cache(cache_file: &Path) -> Result, Cache Ok(cache) } async fn set_entire_cache(cache_file: &Path, cache: Vec) -> Result<(), CacheError> { - println!("saving cache: {:?}", cache); + log::trace!("saving cache: {:?}", cache); let mut cache_file = File::create(cache_file).await.map_err(CacheError::Write)?; let cache = serde_json::to_string_pretty(&cache).map_err(CacheError::Parse)?; -- cgit v1.2.3