Skip to content

Commit

Permalink
build(deps): update env_logger to mitigate RUSTSEC-2021-0145
Browse files Browse the repository at this point in the history
  • Loading branch information
PSUdaemon authored Jan 9, 2024
1 parent 65ceb81 commit af6da80
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions apps/src/bin/quiche-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 1 addition & 3 deletions apps/src/bin/quiche-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tools/http3_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 2 additions & 10 deletions tools/http3_test/tests/httpbin_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@ mod httpbin_tests {
fn do_test(
reqs: Vec<Http3Req>, 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(
Expand All @@ -203,11 +199,7 @@ mod httpbin_tests {
reqs: Vec<Http3Req>, stream_data: Vec<ArbitraryStreamData>,
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),
Expand Down

0 comments on commit af6da80

Please sign in to comment.