remove server_errors counter; set log level to error

This commit is contained in:
bain 2024-06-01 23:01:02 +02:00
parent 296e57b7eb
commit a2fd79d8ca
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

@ -518,7 +518,6 @@ pub struct AppStateRaw {
pub total_logins: AtomicUsize, pub total_logins: AtomicUsize,
pub successful_logins: AtomicUsize, pub successful_logins: AtomicUsize,
pub expired_logins: AtomicUsize, pub expired_logins: AtomicUsize,
pub server_errors: AtomicUsize,
} }
type AppState = Arc<AppStateRaw>; type AppState = Arc<AppStateRaw>;
@ -539,7 +538,7 @@ pub struct Authorization {
#[async_std::main] #[async_std::main]
async fn main() -> anyhow::Result<()> { async fn main() -> anyhow::Result<()> {
log::with_level(log::LevelFilter::Debug); log::with_level(log::LevelFilter::Error);
let mut conf_file = let mut conf_file =
File::open(env::var("CONFIG_FILE").unwrap_or("config.yml".to_owned())).await?; 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), total_logins: AtomicUsize::new(0),
successful_logins: AtomicUsize::new(0), successful_logins: AtomicUsize::new(0),
expired_logins: AtomicUsize::new(0), expired_logins: AtomicUsize::new(0),
server_errors: AtomicUsize::new(0),
})); }));
app.with(tide::utils::After(error_handler)); app.with(tide::utils::After(error_handler));