diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 913a045..fead8e2 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -81,7 +81,6 @@ pub async fn blog_post_view(name: String, state: Arc) -> Result = None; for post in &state.blog { - log::debug!("{}", post.link); if post.link == format!("blog/{}", name) { want = Some(post.clone()); } diff --git a/src/main.rs b/src/main.rs index b24c2c6..90f2b6f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,6 +20,7 @@ fn with_state( #[tokio::main] async fn main() -> Result<()> { pretty_env_logger::init(); + log::info!("starting up"); let state = Arc::new(app::init( std::env::var("CONFIG_FNAME") @@ -92,6 +93,7 @@ async fn main() -> Result<()> { ) }) .or(healthcheck) + .map(|reply| warp::reply::with_header(reply, "X-Clacks-Overhead", "GNU Ashlynn")) .with(warp::log(APPLICATION_NAME)) .recover(handlers::rejection);