diff --git a/akd/crates/reader/src/routes/batch_lookup.rs b/akd/crates/reader/src/routes/batch_lookup.rs index 3b54f56412..08cea8a494 100644 --- a/akd/crates/reader/src/routes/batch_lookup.rs +++ b/akd/crates/reader/src/routes/batch_lookup.rs @@ -24,7 +24,7 @@ pub async fn batch_lookup_handler( State(AppState { directory, .. }): State, Json(BatchLookupRequest { labels_b64 }): Json, ) -> (StatusCode, Json>) { - info!("Handling get public key request"); + info!("Handling batch lookup request"); let labels = labels_b64 .into_iter() .map(|label_b64| label_b64.into()) @@ -40,7 +40,7 @@ pub async fn batch_lookup_handler( })), ), Err(e) => { - error!(err = ?e, "Failed to get AKD public key"); + error!(err = ?e, "Failed to perform batch lookup"); (StatusCode::INTERNAL_SERVER_ERROR, Json(Response::fail(e))) } } diff --git a/akd/crates/reader/src/routes/key_history.rs b/akd/crates/reader/src/routes/key_history.rs index e9ef082579..eb9e107b53 100644 --- a/akd/crates/reader/src/routes/key_history.rs +++ b/akd/crates/reader/src/routes/key_history.rs @@ -51,7 +51,7 @@ pub async fn key_history_handler( history_params, }): Json, ) -> (StatusCode, Json>) { - info!("Handling get public key request"); + info!("Handling get key history request"); let history_proof = directory.key_history(&label, history_params.into()).await; match history_proof { @@ -63,7 +63,7 @@ pub async fn key_history_handler( })), ), Err(e) => { - error!(err = ?e, "Failed to get AKD public key"); + error!(err = ?e, "Failed to get key history"); (StatusCode::INTERNAL_SERVER_ERROR, Json(Response::fail(e))) } } diff --git a/akd/crates/reader/src/routes/lookup.rs b/akd/crates/reader/src/routes/lookup.rs index e8cc3d11f0..eb57da78eb 100644 --- a/akd/crates/reader/src/routes/lookup.rs +++ b/akd/crates/reader/src/routes/lookup.rs @@ -33,7 +33,7 @@ pub async fn lookup_handler( State(AppState { directory, .. }): State, Json(LookupRequest { label_b64 }): Json, ) -> (StatusCode, Json>) { - info!("Handling get public key request"); + info!("Handling lookup request"); let lookup_proof = directory.lookup(label_b64.into()).await; match lookup_proof { @@ -45,7 +45,7 @@ pub async fn lookup_handler( })), ), Err(e) => { - error!(err = ?e, "Failed to get AKD public key"); + error!(err = ?e, "Failed to perform lookup"); (StatusCode::INTERNAL_SERVER_ERROR, Json(Response::fail(e))) } }