aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTill Hoeppner2015-04-03 00:18:35 +0200
committerTill Hoeppner2015-04-03 00:18:35 +0200
commit9826d256eec94144469e27c159e0ec4642b2fda6 (patch)
tree16d751b4dfea1c336747a3a2a63936e8881f0b3e /src/main.rs
parent522ba8bdc2d63c6503324baf3eacdaa0630f4673 (diff)
downloadilc-9826d256eec94144469e27c159e0ec4642b2fda6.tar.gz
ilc-9826d256eec94144469e27c159e0ec4642b2fda6.tar.xz
ilc-9826d256eec94144469e27c159e0ec4642b2fda6.zip
More event types
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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()));
}
}