From 257ed5475c838f33640b262132c3e0f06fc60b77 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 12 Dec 2024 04:14:52 +0100 Subject: [PATCH] `rdserver`: Slightly improve logging --- acrate_rdserver/src/route.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/acrate_rdserver/src/route.rs b/acrate_rdserver/src/route.rs index 25bfbaa..9821182 100644 --- a/acrate_rdserver/src/route.rs +++ b/acrate_rdserver/src/route.rs @@ -14,13 +14,14 @@ use acrate_rd::xrd::{ResourceDescriptorLinkXRD, ResourceDescriptorPropertyXRD, R use crate::config; pub async fn healthcheck_handler() -> Result { - log::info!("Handling an healthcheck request!"); + log::debug!("Handling an healthcheck request!"); log::trace!("Making sure the database is up..."); let _conn = AsyncPgConnection::establish(config::ACRATE_WEBFINGER_DATABASE_URL()) .await .map_err(|_| StatusCode::BAD_GATEWAY)?; + log::trace!("Healthcheck successful! Everything's fine!"); Ok(StatusCode::NO_CONTENT) } @@ -38,7 +39,7 @@ pub async fn webfinger_handler( headers: HeaderMap, Extension(mj): Extension>>, ) -> Result, StatusCode> { - log::info!("Handling a WebFinger request!"); + log::debug!("Handling a WebFinger request!"); let resource = resource.unwrap_or_else(|| "".to_string()); log::debug!("Resource is: {resource:#?}");