Enforce normal logging level

This commit is contained in:
Antoine Gersant 2020-01-12 14:00:50 -08:00
parent 811a35ab4c
commit 360d864148

View file

@ -1,5 +1,6 @@
use anyhow::*;
use rocket;
use rocket::config::{Environment, LoggingLevel};
use rocket_contrib::serve::StaticFiles;
use std::path::PathBuf;
use std::sync::Arc;
@ -18,7 +19,8 @@ pub fn get_server(
db: Arc<DB>,
command_sender: Arc<CommandSender>,
) -> Result<rocket::Rocket> {
let mut config = rocket::Config::build(rocket::config::Environment::Production)
let mut config = rocket::Config::build(Environment::Production)
.log_level(LoggingLevel::Normal)
.port(port)
.keep_alive(0)
.finalize()?;