caio.co/de/cantine

Initialize the logger

Id
bc7e8004d7eb514f74677c1baf33165408b5d497
Author
Caio
Commit time
2020-02-02T12:41:23+01:00

Modified cantine/src/bin/load.rs

@@ -9,6 +9,7
};

use crossbeam_channel::unbounded;
+use env_logger;
use serde_json;

use tantivy::{self, directory::MmapDirectory, schema::SchemaBuilder, Index, Result};
@@ -140,6 +141,8
}

fn main() -> Result<()> {
+ env_logger::init();
+
let output_dir = env::args()
.nth(1)
.expect("First parameter must be the output directory");