From 96316de50ff00dac1c20c533f7352cdfc3380e01 Mon Sep 17 00:00:00 2001 From: Adinata Wijaya Date: Wed, 4 Sep 2024 15:18:13 +0200 Subject: [PATCH] fix rename temp file to cache file --- src/repo_tools/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repo_tools/mod.rs b/src/repo_tools/mod.rs index 196210b..c964c79 100644 --- a/src/repo_tools/mod.rs +++ b/src/repo_tools/mod.rs @@ -121,7 +121,7 @@ async fn get_file_cached>( let temp_file = primitives::download_file(metadata, &repo_url, access_token, randomizer_bytes).await?; if cache_file.is_file() { - debug!("cache file {:?} is already written from other process", &cache_file); + info!("cache file {:?} is already written from other process", &cache_file); } else { fs::rename(&temp_file.path(), cache_file.as_path()) .map_err(|e| {