From 67ff58b47a7ba7b598877e85adb620fb4ee183ff Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 13 Jul 2020 08:01:33 -0400 Subject: [PATCH] X-Clacks-Overhead --- src/handlers/mod.rs | 1 - src/main.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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);