Skip to content

Commit

Permalink
fix: the last inspect errors
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nxie committed Nov 17, 2024
1 parent 076ef44 commit bc2e370
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/chapter_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ pub async fn chapter_tracker(http: &Http, webhook: &Webhook, data: &Data) -> Res
.id(db_manga.manga_dex_id)
.get()
.send()
.await?;
.await
.inspect_err(|e|
tracing::error!(err = ?e, uuid = %db_manga.manga_dex_id, "an error occurred when fetching manga"),
)?;

let manga_id = manga.data.id;
let manga = manga.data.attributes;
Expand Down Expand Up @@ -58,7 +61,10 @@ pub async fn chapter_tracker(http: &Http, webhook: &Webhook, data: &Data) -> Res
.excluded_groups(MD_BLOCKED_LIST.clone())
.limit(1u32)
.send()
.await?;
.await
.inspect_err(|e|
tracing::error!(err = ?e, uuid = %db_manga.manga_dex_id, "an error occurred when fetching chapter feed"),
)?;

let mut db_manga_insert = db_manga.into_active_model();
let now = time::OffsetDateTime::now_utc();
Expand Down

0 comments on commit bc2e370

Please sign in to comment.