logging & some deps stuff

This commit is contained in:
OMGeeky
2024-04-20 18:23:38 +02:00
parent d43965a241
commit 23f974525e
4 changed files with 6 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ git-fetch-with-cli = true
#[patch."https://github.com/OMGeeky/backup_config.git"]
#backup-config = { path = "../backup_config" }
#
[patch."https://github.com/OMGeeky/twitch_backup.local_db.git"]
twba-local-db = { path = "../twitch_backup.local_db" }
#[patch."https://github.com/OMGeeky/twitch_backup.local_db.git"]
#twba-local-db = { path = "../twitch_backup.local_db" }
#
#[patch."https://github.com/OMGeeky/twba_reqwest_backoff.git"]
#reqwest-backoff = { path = "../reqwest_backoff" }

1
Cargo.lock generated
View File

@@ -3323,6 +3323,7 @@ dependencies = [
[[package]]
name = "twba-local-db"
version = "0.2.1"
source = "git+https://github.com/OMGeeky/twitch_backup.local_db.git#3cbb175182d5f01b150ca07ad184ef99315f45c5"
dependencies = [
"futures",
"sea-orm",

View File

@@ -100,6 +100,7 @@ impl UploaderClient {
.await;
match upload {
Ok(uploaded_video_id) => {
info!("uploaded part: {}", part.display());
dbg!(&uploaded_video_id);
client_for_video
.add_video_to_playlist(uploaded_video_id.clone(), playlist_id.clone())
@@ -118,6 +119,7 @@ impl UploaderClient {
.await?;
}
info!("all parts uploaded for video: {}", video_id);
self.set_video_status_on_db(video, Status::Uploaded).await?;
Ok(())
}

View File

@@ -6,7 +6,7 @@ pub enum UploaderError {
#[error("Could not load config")]
LoadConfig(#[source] anyhow::Error),
#[error("Some error with the database")]
#[error("Some error with the database: {0:?}")]
OpenDatabase(#[from] twba_local_db::re_exports::sea_orm::DbErr),
#[error("Error with some Youtube operation: {0} ")]