fix: add success logging for deferred image saves
Log at info level when a deferred image is successfully saved, matching the project convention that every create/update operation logs with entity context.
This commit is contained in:
parent
dfd9814fa5
commit
bb4aa103fb
1 changed files with 2 additions and 0 deletions
|
|
@ -271,6 +271,8 @@ pub(crate) async fn save_deferred_image(
|
|||
};
|
||||
if let Err(err) = state.image_repo.upsert(image).await {
|
||||
tracing::warn!(entity_type, entity_id, error = %err, "failed to save deferred image");
|
||||
} else {
|
||||
info!(entity_type, entity_id, "deferred image saved");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue