This commit is contained in:
OMGeeky
2024-04-20 12:49:16 +02:00
parent d9d937ddd0
commit cc9c467668
2 changed files with 2 additions and 2 deletions

View File

@@ -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?;

View File

@@ -29,7 +29,7 @@ async fn run() -> Result<(), Box<dyn Error>> {
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...")?;