chore: update logs

This commit is contained in:
nathan 2024-04-03 20:40:58 +08:00
parent 51020b8f03
commit 632fbc6a7d
2 changed files with 4 additions and 2 deletions

View File

@ -171,7 +171,7 @@ where
Ok(()) Ok(())
} }
#[instrument(level = "trace", skip(self, params), oid = %params.oid, err)] #[instrument(level = "trace", skip(self, params), oid = %params.oid, ty = %params.collab_type, err)]
async fn insert_or_update_collab_with_transaction( async fn insert_or_update_collab_with_transaction(
&self, &self,
workspace_id: &str, workspace_id: &str,

View File

@ -8,7 +8,7 @@ use database::user::{create_user, is_user_exist};
use database_entity::dto::AFRole; use database_entity::dto::AFRole;
use sqlx::types::uuid; use sqlx::types::uuid;
use std::ops::DerefMut; use std::ops::DerefMut;
use tracing::{event, instrument}; use tracing::{event, instrument, trace};
use uuid::Uuid; use uuid::Uuid;
use workspace_template::document::get_started::GetStartedDocumentTemplate; use workspace_template::document::get_started::GetStartedDocumentTemplate;
@ -64,6 +64,8 @@ pub async fn verify_token(access_token: &str, state: &AppState) -> Result<bool,
&state.collab_access_control_storage, &state.collab_access_control_storage,
) )
.await?; .await?;
} else {
trace!("user already exists:{},{}", user.id, user.email);
} }
txn txn
.commit() .commit()