From 6eecc75cb377f956cfb422da548f7fdd07553f2c Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 5 May 2016 11:04:30 -0700 Subject: [PATCH] Set max log level on all platforms Servo currently enabled the `release_max_level_info` feature for the log crate in an Android-specific dependency. Currently this works for all platforms because of rust-lang/cargo#2524, but it might break if that issue is fixed. --- components/servo/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml index 109d4e6d73356..81a46875200a6 100644 --- a/components/servo/Cargo.toml +++ b/components/servo/Cargo.toml @@ -19,7 +19,8 @@ doc = false bench = false [features] -default = ["glutin_app", "webdriver"] +default = ["glutin_app", "webdriver", "max_log_level"] +max_log_level = ["env_logger/log/release_max_level_info"] webdriver = ["webdriver_server"] energy-profiling = ["profile_traits/energy-profiling"] @@ -75,7 +76,7 @@ libc = "0.2" url = {version = "1.0.0", features = ["heap_size", "serde", "query_encoding"]} [target.'cfg(target_os = "android")'.dependencies] -log = {version = "0.3", features = ["release_max_level_info"]} +log = "0.3" [target.'cfg(not(target_os = "windows"))'.dependencies] gaol = {git = "https://github.com/servo/gaol"}