aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ff5ed3a..c7ee66f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,6 @@
extern crate docopt;
+#[macro_use] extern crate log;
+extern crate env_logger;
extern crate rustc_serialize;
extern crate rustv;
extern crate time;
@@ -62,6 +64,8 @@ fn load_program<T: memory::Mmu>(memory: &mut memory::Memory,
}
fn main() {
+ env_logger::init().unwrap();
+
let args: Args = Docopt::new(USAGE)
.and_then(|d| d.decode())
.unwrap_or_else(|e| e.exit());