diff options
author | Till Hoeppner | 2015-04-03 00:18:35 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-04-03 00:18:35 +0200 |
commit | 9826d256eec94144469e27c159e0ec4642b2fda6 (patch) | |
tree | 16d751b4dfea1c336747a3a2a63936e8881f0b3e /src/main.rs | |
parent | 522ba8bdc2d63c6503324baf3eacdaa0630f4673 (diff) | |
download | ilc-9826d256eec94144469e27c159e0ec4642b2fda6.tar.gz ilc-9826d256eec94144469e27c159e0ec4642b2fda6.tar.xz ilc-9826d256eec94144469e27c159e0ec4642b2fda6.zip |
More event types
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index be86652..53c3527 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,8 @@ extern crate docopt; extern crate rustc_serialize; extern crate libc; extern crate regex; +#[macro_use] +extern crate log; extern crate env_logger; use std::fs::File; @@ -59,8 +61,8 @@ fn main() { for file in args.arg_file { let f: BufReader<File> = BufReader::new(File::open(file).unwrap()); let iter = parser.decode(f); - let events: Vec<_> = iter.collect(); - for e in events { + for e in iter { + info!("Parsed: {:?}", e); drop(parser.encode(io::stdout(), &e.unwrap())); } } |