Skip to content

Commit cab4deb

Browse files
committed
feat: add some logs for zip preview
1 parent 4be6e7d commit cab4deb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

check-cmt/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ async fn generate_zip_preview(filelist_url: &str) -> anyhow::Result<()> {
397397
let file = file?;
398398
let path = file.path();
399399
if path.is_file() && path.extension().and_then(|s| s.to_str()) == Some("zip") {
400+
println!("Processing zip file: {:?}", path.to_string_lossy().as_ref());
400401
let tree = build_tree(path.to_str().unwrap())?;
401402
let res = reqwest::Client::new()
402403
.post(filelist_url)
@@ -434,6 +435,10 @@ async fn generate_zip_preview(filelist_url: &str) -> anyhow::Result<()> {
434435
),
435436
image::ImageFormat::WebP,
436437
)?;
438+
println!(
439+
"Preview generated for zip file: {:?}",
440+
path.to_string_lossy().as_ref()
441+
);
437442
}
438443
} //Generate zip preview
439444

0 commit comments

Comments
 (0)