From e6f17cbac6094eb77b1f2707614f6c72ecf3c2cd Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 29 Jun 2023 11:45:06 -0500 Subject: [PATCH] Log on successful migration --- src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8fef44a3..34b5482c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -226,7 +226,7 @@ impl FormData for Import { } } -/// Handle responding to succesful uploads +/// Handle responding to successful uploads #[tracing::instrument(name = "Uploaded files", skip(value, repo, store))] async fn upload( Multipart(Upload(value)): Multipart>, @@ -236,7 +236,7 @@ async fn upload( handle_upload(value, repo, store).await } -/// Handle responding to succesful uploads +/// Handle responding to successful uploads #[tracing::instrument(name = "Imported files", skip(value, repo, store))] async fn import( Multipart(Import(value)): Multipart>, @@ -246,7 +246,7 @@ async fn import( handle_upload(value, repo, store).await } -/// Handle responding to succesful uploads +/// Handle responding to successful uploads #[tracing::instrument(name = "Uploaded files", skip(value, repo, store))] async fn handle_upload( value: Value>, @@ -1538,6 +1538,8 @@ where // clean up the migration key to avoid interfering with future migrations repo.remove(STORE_MIGRATION_PROGRESS).await?; + tracing::warn!("Migration completed successfully"); + Ok(()) }