mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 08:48:32 +08:00
Merge pull request #274 from meilisearch/enable-env-logger
Add env logger to enable logging
This commit is contained in:
commit
3f41681b18
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -899,6 +899,7 @@ dependencies = [
|
|||||||
"bincode 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bincode 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
"chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"crossbeam-channel 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"crossbeam-channel 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"envconfig 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"envconfig 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"envconfig_derive 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"envconfig_derive 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"heed 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"heed 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -11,6 +11,7 @@ edition = "2018"
|
|||||||
bincode = "1.2.0"
|
bincode = "1.2.0"
|
||||||
chrono = { version = "0.4.9", features = ["serde"] }
|
chrono = { version = "0.4.9", features = ["serde"] }
|
||||||
crossbeam-channel = "0.4.0"
|
crossbeam-channel = "0.4.0"
|
||||||
|
env_logger = "0.7.1"
|
||||||
envconfig = "0.5.1"
|
envconfig = "0.5.1"
|
||||||
envconfig_derive = "0.5.1"
|
envconfig_derive = "0.5.1"
|
||||||
heed = "0.5.0"
|
heed = "0.5.0"
|
||||||
|
@ -13,6 +13,8 @@ use meilidb_http::routes;
|
|||||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||||
|
|
||||||
pub fn main() -> Result<(), MainError> {
|
pub fn main() -> Result<(), MainError> {
|
||||||
|
env_logger::init();
|
||||||
|
|
||||||
let opt = Opt::new();
|
let opt = Opt::new();
|
||||||
|
|
||||||
let data = Data::new(opt.clone());
|
let data = Data::new(opt.clone());
|
||||||
|
Loading…
Reference in New Issue
Block a user