remove server_errors counter; set log level to error
This commit is contained in:
parent
296e57b7eb
commit
a2fd79d8ca
1 changed files with 1 additions and 3 deletions
|
@ -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<AppStateRaw>;
|
||||
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue