mirror of
https://framagit.org/veretcle/tootube.git
synced 2025-07-20 20:41:17 +02:00
feat: add log
This commit is contained in:
@@ -21,5 +21,7 @@ fn main() {
|
||||
|
||||
let config = parse_toml(matches.get_one::<String>("config").unwrap());
|
||||
|
||||
env_logger::init();
|
||||
|
||||
run(config);
|
||||
}
|
||||
|
@@ -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())
|
||||
|
Reference in New Issue
Block a user