Improve logging
This commit is contained in:
parent
4456767ec4
commit
84f077f36b
1 changed files with 90 additions and 34 deletions
|
|
@ -3,6 +3,7 @@ use axum::{
|
|||
Json,
|
||||
extract::{Path, State},
|
||||
};
|
||||
use log::debug;
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::{
|
||||
|
|
@ -30,6 +31,8 @@ pub async fn fetch_latest_document_version(
|
|||
}): Path<FetchLatestDocumentVersionPathParams>,
|
||||
State(state): State<AppState>,
|
||||
) -> Result<Json<DocumentVersion>, SyncServerError> {
|
||||
debug!("Fetching latest document version for document `{document_id}` in vault `{vault_id}`");
|
||||
|
||||
let latest_version = state
|
||||
.database
|
||||
.get_latest_document(&vault_id, &document_id, None)
|
||||
|
|
|
|||
Loading…
Reference in a new issue