aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/main.rs
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2015-06-06 23:20:40 +0300
committerEduard Burtescu <edy.burt@gmail.com>2015-06-06 23:20:40 +0300
commit00e8e5f77de8d54cd65e50899f847fe66375b7f7 (patch)
tree90991ded1c13339eb694bc0a921fdb0713752ca5 /components/servo/main.rs
parent78665336e6a3d57e43610365f52ce038ba0d9e8b (diff)
downloadservo-00e8e5f77de8d54cd65e50899f847fe66375b7f7.tar.gz
servo-00e8e5f77de8d54cd65e50899f847fe66375b7f7.zip
Use the correct log crate and setup env_logger in main.
Diffstat (limited to 'components/servo/main.rs')
-rw-r--r--components/servo/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/servo/main.rs b/components/servo/main.rs
index ef12ef2171a..5ffc75d911f 100644
--- a/components/servo/main.rs
+++ b/components/servo/main.rs
@@ -28,6 +28,7 @@ extern crate util;
// The window backed by glutin
extern crate glutin_app as app;
extern crate time;
+extern crate env_logger;
#[cfg(target_os="android")]
#[macro_use]
@@ -43,6 +44,8 @@ use compositing::windowing::WindowEvent;
use std::borrow::ToOwned;
fn main() {
+ env_logger::init().unwrap();
+
// Parse the command line options and store them globally
if opts::from_cmdline_args(&*get_args()) {
setup_logging();