Use the correct log crate and setup env_logger in main.

This commit is contained in:
Eduard Burtescu 2015-06-06 23:20:40 +03:00
parent 78665336e6
commit 00e8e5f77d
35 changed files with 95 additions and 16 deletions

View file

@ -68,6 +68,7 @@ git = "https://github.com/servo/rust-png"
git = "https://github.com/tomaka/clock_ticks"
[dependencies]
log = "*"
encoding = "0.2"
url = "0.2.35"
bitflags = "*"

View file

@ -889,7 +889,7 @@ impl LayoutTask {
};
debug!("layout: received layout request for: {}", self.url.serialize());
if log_enabled!(log::DEBUG) {
if log_enabled!(log::LogLevel::Debug) {
node.dump();
}

View file

@ -8,7 +8,6 @@
#![feature(core)]
#![feature(filling_drop)]
#![feature(plugin)]
#![feature(rustc_private)]
#![feature(std_misc)]
#![feature(str_char)]
#![feature(thread_local)]