From 35db0eda9aa8db9ed7ee91fb6968ae93e1479bb4 Mon Sep 17 00:00:00 2001 From: Harsh Modi Date: Sun, 7 Jan 2024 00:07:00 -0800 Subject: [PATCH] exclude some unnecessary log paths --- blade/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blade/main.rs b/blade/main.rs index 7d399a3..4e4a75c 100644 --- a/blade/main.rs +++ b/blade/main.rs @@ -86,7 +86,10 @@ cfg_if! { App, ) .app_data(web::Data::new(leptos_options.to_owned())) - .wrap(middleware::Logger::new("%t -- %a %s %U")) + .wrap(middleware::Logger::new("%t -- %a %s %U") + .exclude("/") + .exclude("/favicon.ico") + .exclude_regex("/pkg/.*")) }) .disable_signals() .bind(&addr)?