mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use the correct log crate and setup env_logger in main.
This commit is contained in:
parent
78665336e6
commit
00e8e5f77d
35 changed files with 95 additions and 16 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue