Skip to content

Commit

Permalink
added log for poller failure
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowHatpro committed Sep 10, 2024
1 parent ce59538 commit 34d269c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ pub async fn spawn_poller_task(db_pool: PgPool) -> JoinHandle<()> {

tokio::spawn(async move {
if let Err(e) = poller.poll().await {
eprintln!("Cannot poll edit data and edit notes, due to: {}", e);
sentry::capture_message(
format!("Cannot poll edit data and edit notes, due to: {}", e).as_str(),
sentry::Level::Warning,
Expand Down

0 comments on commit 34d269c

Please sign in to comment.