Remove info prints
This commit is contained in:
parent
ebd59278fd
commit
e7f99337b9
|
@ -73,16 +73,12 @@ async fn save_file(
|
|||
let stream = stream.err_into::<JsonError>();
|
||||
let filename = format!("examples/filename{}.png", count);
|
||||
|
||||
info!("Creating {}", filename);
|
||||
let file = actix_fs::create(filename.clone()).await?;
|
||||
|
||||
info!("Writing to file");
|
||||
if let Err(e) = actix_fs::write_stream(file, stream).await {
|
||||
info!("Error writing, deleting file");
|
||||
actix_fs::remove(filename.clone()).await?;
|
||||
return Err(e);
|
||||
}
|
||||
info!("Written!");
|
||||
|
||||
Ok(filename)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue