From a2fd79d8caa63bfdd80ee87cd960a697b38988cc Mon Sep 17 00:00:00 2001 From: bain Date: Sat, 1 Jun 2024 23:01:02 +0200 Subject: [PATCH] remove server_errors counter; set log level to error --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8dd59a5..bd9a237 100644 --- a/src/main.rs +++ b/src/main.rs @@ -518,7 +518,6 @@ pub struct AppStateRaw { pub total_logins: AtomicUsize, pub successful_logins: AtomicUsize, pub expired_logins: AtomicUsize, - pub server_errors: AtomicUsize, } type AppState = Arc; @@ -539,7 +538,7 @@ pub struct Authorization { #[async_std::main] async fn main() -> anyhow::Result<()> { - log::with_level(log::LevelFilter::Debug); + log::with_level(log::LevelFilter::Error); let mut conf_file = File::open(env::var("CONFIG_FILE").unwrap_or("config.yml".to_owned())).await?; @@ -559,7 +558,6 @@ async fn main() -> anyhow::Result<()> { total_logins: AtomicUsize::new(0), successful_logins: AtomicUsize::new(0), expired_logins: AtomicUsize::new(0), - server_errors: AtomicUsize::new(0), })); app.with(tide::utils::After(error_handler));