Remove info prints

This commit is contained in:
asonix 2020-06-05 22:23:18 -05:00
parent ebd59278fd
commit e7f99337b9

View file

@ -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)
}