feat: add log

This commit is contained in:
VC
2023-10-04 13:59:38 +02:00
parent 328ab8ba7b
commit 54c926fd1e
4 changed files with 92 additions and 4 deletions

View File

@@ -21,5 +21,7 @@ fn main() {
let config = parse_toml(matches.get_one::<String>("config").unwrap());
env_logger::init();
run(config);
}

View File

@@ -165,10 +165,6 @@ pub fn upload_video(
.send()?;
if res.status().is_success() {
/* debug */
println!("{:?}", res.status());
println!("{:?}", res.text()?);
/* debug */
Ok(())
} else {
Err(TootubeError::new(&format!("Cannot upload video: {:?}", res.text())).into())