Enforce normal logging level
This commit is contained in:
parent
811a35ab4c
commit
360d864148
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
use anyhow::*;
|
use anyhow::*;
|
||||||
use rocket;
|
use rocket;
|
||||||
|
use rocket::config::{Environment, LoggingLevel};
|
||||||
use rocket_contrib::serve::StaticFiles;
|
use rocket_contrib::serve::StaticFiles;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
@ -18,7 +19,8 @@ pub fn get_server(
|
||||||
db: Arc<DB>,
|
db: Arc<DB>,
|
||||||
command_sender: Arc<CommandSender>,
|
command_sender: Arc<CommandSender>,
|
||||||
) -> Result<rocket::Rocket> {
|
) -> 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)
|
.port(port)
|
||||||
.keep_alive(0)
|
.keep_alive(0)
|
||||||
.finalize()?;
|
.finalize()?;
|
||||||
|
|
Loading…
Add table
Reference in a new issue