update env-logger

This commit is contained in:
mpostma 2020-12-09 10:25:17 +01:00
parent 5f8dc21dd2
commit 0c7fffeaf6
4 changed files with 26 additions and 7 deletions

27
Cargo.lock generated
View File

@ -891,7 +891,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
dependencies = [
"atty",
"humantime",
"humantime 1.3.0",
"log",
"regex",
"termcolor",
]
[[package]]
name = "env_logger"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26ecb66b4bdca6c1409b40fb255eefc2bd4f6d135dab3c3124f80ffa2a9661e"
dependencies = [
"atty",
"humantime 2.0.1",
"log",
"regex",
"termcolor",
@ -1271,6 +1284,12 @@ dependencies = [
"quick-error",
]
[[package]]
name = "humantime"
version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a"
[[package]]
name = "hyper"
version = "0.13.8"
@ -1564,7 +1583,7 @@ dependencies = [
"csv",
"deunicode",
"either",
"env_logger",
"env_logger 0.8.2",
"fst",
"hashbrown",
"heed",
@ -1615,7 +1634,7 @@ dependencies = [
"bytes",
"chrono",
"crossbeam-channel 0.5.0",
"env_logger",
"env_logger 0.8.2",
"flate2",
"futures",
"http",
@ -2412,7 +2431,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b01b723fc1b0a0f9394ca1a8451daec6e20206d47f96c3dceea7fd11ec9eec0"
dependencies = [
"backtrace",
"env_logger",
"env_logger 0.7.1",
"failure",
"hostname",
"httpdate",

View File

@ -15,7 +15,7 @@ cow-utils = "0.1.2"
crossbeam-channel = "0.5.0"
deunicode = "1.1.0"
either = "1.5.3"
env_logger = "0.7.1"
env_logger = "0.8.2"
fst = "0.4.4"
hashbrown = { version = "0.9.0", features = ["serde"] }
heed = "0.8.0"

View File

@ -25,7 +25,7 @@ actix-web = { version = "3.1.0", features = ["rustls"] }
bytes = "0.5.4"
chrono = { version = "0.4.19", features = ["serde"] }
crossbeam-channel = "0.5.0"
env_logger = "0.7.1"
env_logger = "0.8.2"
flate2 = "1.0.18"
futures = "0.3.7"
http = "0.2.1"

View File

@ -47,7 +47,7 @@ async fn main() -> Result<(), MainError> {
}
}
"development" => {
env_logger::from_env(env_logger::Env::default().default_filter_or("info")).init();
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
}
_ => unreachable!(),
}