mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: add log
This commit is contained in:
@ -68,7 +68,9 @@ impl AppController {
|
||||
let app = transaction.read_app(¶ms.value)?;
|
||||
let trash_ids = self.trash_controller.read_trash_ids(&transaction)?;
|
||||
if trash_ids.contains(&app.id) {
|
||||
return Err(FlowyError::record_not_found());
|
||||
return Err(
|
||||
FlowyError::record_not_found().context(format!("Can not find the app:{}", params.value))
|
||||
);
|
||||
}
|
||||
Ok(app)
|
||||
})
|
||||
|
@ -44,7 +44,7 @@ pub(crate) async fn update_app_handler(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tracing::instrument(level = "trace", skip(data, app_controller, view_controller))]
|
||||
#[tracing::instrument(level = "info", skip(data, app_controller, view_controller), err)]
|
||||
pub(crate) async fn read_app_handler(
|
||||
data: Data<AppIdPB>,
|
||||
app_controller: AppData<Arc<AppController>>,
|
||||
|
Reference in New Issue
Block a user