Add env logger to enable logging

This commit is contained in:
Clément Renault 2019-11-11 19:03:38 +01:00
parent 8a36571a74
commit 64791815fa
No known key found for this signature in database
GPG key ID: 0151CDAB43460DAE
3 changed files with 4 additions and 0 deletions

View file

@ -11,6 +11,7 @@ edition = "2018"
bincode = "1.2.0"
chrono = { version = "0.4.9", features = ["serde"] }
crossbeam-channel = "0.4.0"
env_logger = "0.7.1"
envconfig = "0.5.1"
envconfig_derive = "0.5.1"
heed = "0.5.0"

View file

@ -13,6 +13,8 @@ use meilidb_http::routes;
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
pub fn main() -> Result<(), MainError> {
env_logger::init();
let opt = Opt::new();
let data = Data::new(opt.clone());