diff --git a/src/lib.rs b/src/lib.rs index 3ef6e22..ae2b902 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,7 +38,7 @@ pub async fn migrate_db(db: &DatabaseConnection) -> Result<(), DbErr> { } /// Prints all entries in the database. This is for debugging. -#[instrument] +#[instrument(skip(db))] pub async fn print_db(db: &DatabaseConnection) -> Result<(), DbErr> { info!("Printing DB"); let users = Users::find().all(db).await?; diff --git a/src/main.rs b/src/main.rs index 35ce60b..c48573a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ async fn run() -> Result<(), Box> { info!("Bye!"); Ok(()) } -#[instrument] +#[instrument(skip(db))] async fn sample(db: &DatabaseConnection) -> anyhow::Result<()> { let users = twba_local_db::get_watched_users(db).await?; let user = users.first().context("Could not get any users...")?;