aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/servo/main.rs')
-rw-r--r--components/servo/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/servo/main.rs b/components/servo/main.rs
index 66f5a149158..954c3f0e848 100644
--- a/components/servo/main.rs
+++ b/components/servo/main.rs
@@ -22,7 +22,6 @@
extern crate android_glue;
#[cfg(not(target_os = "android"))]
extern crate backtrace;
-extern crate env_logger;
// The window backed by glutin
extern crate glutin_app as app;
#[cfg(target_os = "android")]
@@ -96,8 +95,6 @@ fn main() {
};
initiate_panic_hook();
- env_logger::init().unwrap();
-
setup_logging();
if let Some(token) = content_process_token {
@@ -117,6 +114,8 @@ fn main() {
browser: Browser::new(window.clone()),
};
+ browser.browser.setup_logging();
+
register_glutin_resize_handler(&window, &mut browser);
browser.browser.handle_events(vec![WindowEvent::InitializeCompositing]);