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

@ -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();