Skip to content

Commit

Permalink
fix(*): use logging level from environment
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse committed Jan 17, 2018
1 parent 84ca3a3 commit 7d8d4f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DATABASE_URL=openfair.db
ROCKET_LOG=normal
2 changes: 0 additions & 2 deletions src/infrastructure/web/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7d8d4f5

Please sign in to comment.