From 8898045fa8a2c4b0983fdacceff847278fd70eec Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 10:01:52 +0000 Subject: [PATCH] Update crates/tabby-download/src/lib.rs --- crates/tabby-download/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/tabby-download/src/lib.rs b/crates/tabby-download/src/lib.rs index ac247e3..996b62e 100644 --- a/crates/tabby-download/src/lib.rs +++ b/crates/tabby-download/src/lib.rs @@ -57,6 +57,7 @@ impl CacheInfo { } pub async fn download_model(model_id: &str, prefer_local_file: bool) -> Result<()> { + tracing::info!("Starting to download model: {}", model_id); if fs::metadata(model_id).is_ok() { // Local path, no need for downloading. return Ok(()); @@ -97,6 +98,7 @@ pub async fn download_model(model_id: &str, prefer_local_file: bool) -> Result<( } cache_info.save(model_id)?; + tracing::info!("Model download successful: {}", model_id); Ok(()) }