Skip to content

Commit

Permalink
Bug 1580908 - Part 2: Update env_logger to 0.6. r=froydnj
Browse files Browse the repository at this point in the history
This is one less dependency on regex 0.2

Differential Revision: https://phabricator.services.mozilla.com/D45711

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Eijebong committed Sep 12, 2019
1 parent 081b889 commit c98f904
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 21 deletions.
38 changes: 24 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build = "build.rs"
license = "MPL-2.0"

[build-dependencies]
env_logger = {version = "0.5", default-features = false} # disable `regex` to reduce code size
env_logger = {version = "0.6", default-features = false} # disable `regex` to reduce code size
bindgen = {version = "0.51", default-features = false} # disable `logging` to reduce code size
cmake = "0.1"
glob = "0.2.11"
Expand Down
2 changes: 1 addition & 1 deletion js/src/frontend/binast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ autobins = false
[dependencies]
binjs_meta = "^0.5.2"
clap = "^2"
env_logger = "^0.5.6"
env_logger = "^0.6"
Inflector = "^0.11"
itertools = "^0.8"
log = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion js/src/wasm/cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name = "baldrdash"
cranelift-codegen = { version = "0.42", default-features = false }
cranelift-wasm = "0.42"
log = { version = "0.4.6", default-features = false, features = ["release_max_level_info"] }
env_logger = "0.5.6"
env_logger = "0.6"
smallvec = { version = "0.6.6" }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion servo/ports/geckolib/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ doctest = false
atomic_refcell = "0.1"
cssparser = "0.25"
cstr = "0.1.2"
env_logger = { version = "0.5", default-features = false }
env_logger = { version = "0.6", default-features = false }
geckoservo = {path = "../../../ports/geckolib"}
libc = "0.2"
log = {version = "0.4", features = ["release_max_level_info"]}
Expand Down
2 changes: 1 addition & 1 deletion toolkit/library/rust/shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rsdparsa_capi = { path = "../../../../media/webrtc/signaling/src/sdp/rsdparsa_ca
xulstore = { path = "../../../components/xulstore", optional = true }
# We have these to enforce common feature sets for said crates.
log = {version = "0.4", features = ["release_max_level_info"]}
env_logger = {version = "0.5", default-features = false} # disable `regex` to reduce code size
env_logger = {version = "0.6", default-features = false} # disable `regex` to reduce code size
cose-c = { version = "0.1.5" }
jsrust_shared = { path = "../../../../js/src/rust/shared" }
arrayvec = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions toolkit/library/rust/shared/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ impl GeckoLogger {
let mut builder = env_logger::Builder::new();
let default_level = if cfg!(debug_assertions) { "warn" } else { "error" };
let logger = match env::var("RUST_LOG") {
Ok(v) => builder.parse(&v).build(),
_ => builder.parse(default_level).build(),
Ok(v) => builder.parse_filters(&v).build(),
_ => builder.parse_filters(default_level).build(),
};

GeckoLogger {
Expand Down

0 comments on commit c98f904

Please sign in to comment.