feat: add tracing throughout, HTTP TraceLayer, detailed error logs
This commit is contained in:
@@ -8,12 +8,15 @@ pub async fn execute(
|
||||
deps: &SongCommandDeps,
|
||||
cmd: UpdateSongMetaCommand,
|
||||
) -> Result<SongSummary, DomainError> {
|
||||
deps.repo
|
||||
let result = deps
|
||||
.repo
|
||||
.update_meta(
|
||||
cmd.id,
|
||||
cmd.title.as_deref(),
|
||||
cmd.artist.as_deref(),
|
||||
cmd.original_key.as_deref(),
|
||||
)
|
||||
.await
|
||||
.await?;
|
||||
tracing::debug!(id = %cmd.id, "song meta updated");
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user