1
0
派生 0
镜像自地址 https://github.com/meilisearch/MeiliSearch 已同步 2025-07-15 13:58:36 +02:00

Add env logger to enable logging

这个提交存在于:
Clément Renault 2019-11-11 19:03:38 +01:00
父节点 8a36571a74
当前提交 64791815fa
找不到此签名对应的密钥
GPG 密钥 ID: 0151CDAB43460DAE
共有 3 个文件被更改,包括 4 次插入0 次删除

1
Cargo.lock 自动生成
查看文件

@ -899,6 +899,7 @@ dependencies = [
"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)",
"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_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)",

查看文件

@ -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"

查看文件

@ -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());