Bump env_logger to 0.5 and log to 0.4 in every servo crate

This commit is contained in:
Bastien Orivel 2018-03-28 19:50:58 +02:00
parent 84513d43ba
commit 0918ac8cc7
34 changed files with 153 additions and 110 deletions

View file

@ -42,7 +42,7 @@ html5ever = {version = "0.22", optional = true}
itertools = "0.7.6"
itoa = "0.3"
lazy_static = "1"
log = "0.3"
log = "0.4"
malloc_size_of = { path = "../malloc_size_of" }
malloc_size_of_derive = { path = "../malloc_size_of_derive" }
matches = "0.1"
@ -77,7 +77,7 @@ kernel32-sys = "0.2"
[build-dependencies]
lazy_static = "1"
log = "0.3"
log = "0.4"
bindgen = { version = "0.33.2", optional = true, default-features = false }
regex = {version = "0.2", optional = true}
walkdir = "1.0"

View file

@ -207,7 +207,7 @@ impl ParseErrorReporter for RustLogReporter {
url: &UrlExtraData,
location: SourceLocation,
error: ContextualParseError) {
if log_enabled!(log::LogLevel::Info) {
if log_enabled!(log::Level::Info) {
info!("Url:\t{}\n{}:{} {}", url.as_str(), location.line, location.column, error)
}
}

View file

@ -8,7 +8,7 @@ use applicable_declarations::ApplicableDeclarationList;
use context::{CascadeInputs, ElementCascadeInputs, StyleContext};
use data::{ElementStyles, EagerPseudoStyles};
use dom::TElement;
use log::LogLevel::Trace;
use log::Level::Trace;
use matching::MatchMethods;
use properties::{AnimationRules, ComputedValues};
use properties::longhands::display::computed_value::T as Display;