From 4562b278a8fa3d10601a541f25ce0eaa3f0b1997 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Mon, 5 Jul 2021 17:43:28 +0200 Subject: [PATCH] remove a warning and add a log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Renault --- http-ui/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http-ui/src/main.rs b/http-ui/src/main.rs index f9f3a3c52..ee32882c0 100644 --- a/http-ui/src/main.rs +++ b/http-ui/src/main.rs @@ -983,7 +983,9 @@ async fn main() -> anyhow::Result<()> { }); let die_route = warp::filters::method::get().and(warp::path!("die")).map(move || { + eprintln!("Killed by an HTTP request received on the die route"); std::process::exit(0); + #[allow(unreachable_code)] warp::reply() });