Revert "disable tracing macros"
This reverts commit 14e0d286f1efcc989ce679e451159fede6330bdf.
This commit is contained in:
@@ -34,7 +34,7 @@ impl TryFrom<DbUserRow> for User {
|
||||
}
|
||||
|
||||
impl User {
|
||||
//#[tracing::instrument]
|
||||
#[tracing::instrument]
|
||||
pub async fn find_by_name(
|
||||
pool: &sqlx::Pool<sqlx::Sqlite>,
|
||||
name: &str,
|
||||
@@ -51,7 +51,7 @@ impl User {
|
||||
}
|
||||
}
|
||||
|
||||
//#[tracing::instrument]
|
||||
#[tracing::instrument]
|
||||
pub async fn create(pool: &sqlx::Pool<sqlx::Sqlite>, user: NewUser<'_>) -> Result<Uuid, Error> {
|
||||
let id = Uuid::new_v4();
|
||||
let id_param = id.to_string();
|
||||
|
||||
Reference in New Issue
Block a user