Permalink
Browse files

fix(*): use logging level from environment

  • Loading branch information...
Markus Kohlhase
Markus Kohlhase committed Jan 9, 2018
1 parent 84ca3a3 commit 7d8d4f5422a13462fa8e2a9ada3da51f8eb28e92
Showing with 1 addition and 2 deletions.
  1. +1 −0 .env
  2. +0 −2 src/infrastructure/web/mod.rs
1 .env
@@ -1 +1,2 @@
DATABASE_URL=openfair.db
ROCKET_LOG=normal
@@ -1,5 +1,4 @@
use rocket::{self, Rocket};
use rocket::logger::LoggingLevel;
use rocket_contrib::Json;
use rocket::config::{Environment, Config};
use business::db::Db;
@@ -103,7 +102,6 @@ pub fn run(db_url: &str, port: u16, enable_cors: bool) {
}

let cfg = Config::build(Environment::Production)
.log_level(LoggingLevel::Normal)
.address("127.0.0.1")
.port(port)
.finalize()

0 comments on commit 7d8d4f5

Please sign in to comment.