diff --git a/apps/Cargo.toml b/apps/Cargo.toml index 135021ddd0..c9ea26b216 100644 --- a/apps/Cargo.toml +++ b/apps/Cargo.toml @@ -22,7 +22,7 @@ default = ["qlog", "sfv"] [dependencies] docopt = "1" -env_logger = "0.6" +env_logger = "0.10" mio = { version = "0.8", features = ["net", "os-poll"] } url = "1" log = "0.4" diff --git a/apps/src/bin/quiche-client.rs b/apps/src/bin/quiche-client.rs index 25ce6ddeff..fad885cb86 100644 --- a/apps/src/bin/quiche-client.rs +++ b/apps/src/bin/quiche-client.rs @@ -31,9 +31,7 @@ use quiche_apps::common::*; use quiche_apps::client::*; fn main() { - env_logger::builder() - .default_format_timestamp_nanos(true) - .init(); + env_logger::builder().format_timestamp_nanos().init(); // Parse CLI parameters. let docopt = docopt::Docopt::new(CLIENT_USAGE).unwrap(); diff --git a/apps/src/bin/quiche-server.rs b/apps/src/bin/quiche-server.rs index 84810dd226..ac632dc064 100644 --- a/apps/src/bin/quiche-server.rs +++ b/apps/src/bin/quiche-server.rs @@ -58,9 +58,7 @@ fn main() { let mut out = [0; MAX_BUF_SIZE]; let mut pacing = false; - env_logger::builder() - .default_format_timestamp_nanos(true) - .init(); + env_logger::builder().format_timestamp_nanos().init(); // Parse CLI parameters. let docopt = docopt::Docopt::new(SERVER_USAGE).unwrap(); diff --git a/tools/http3_test/Cargo.toml b/tools/http3_test/Cargo.toml index ee59ff0876..1fbb6d7755 100644 --- a/tools/http3_test/Cargo.toml +++ b/tools/http3_test/Cargo.toml @@ -10,7 +10,7 @@ test_resets = [] [dependencies] docopt = "1" -env_logger = "0.6" +env_logger = "0.10" mio = { version = "0.8", features = ["net", "os-poll"] } url = "1" log = "0.4" diff --git a/tools/http3_test/tests/httpbin_tests.rs b/tools/http3_test/tests/httpbin_tests.rs index 7bd45957c0..93d0eba4d7 100644 --- a/tools/http3_test/tests/httpbin_tests.rs +++ b/tools/http3_test/tests/httpbin_tests.rs @@ -181,11 +181,7 @@ mod httpbin_tests { fn do_test( reqs: Vec, assert: Http3Assert, concurrent: bool, ) -> std::result::Result<(), Http3TestError> { - INIT.call_once(|| { - env_logger::builder() - .default_format_timestamp_nanos(true) - .init() - }); + INIT.call_once(|| env_logger::builder().format_timestamp_nanos().init()); let mut test = Http3Test::new(endpoint(None), reqs, assert, concurrent); runner::run( @@ -203,11 +199,7 @@ mod httpbin_tests { reqs: Vec, stream_data: Vec, assert: Http3Assert, concurrent: bool, ) -> std::result::Result<(), Http3TestError> { - INIT.call_once(|| { - env_logger::builder() - .default_format_timestamp_nanos(true) - .init() - }); + INIT.call_once(|| env_logger::builder().format_timestamp_nanos().init()); let mut test = Http3Test::with_stream_data( endpoint(None),