Use the log crate instead of stderr

This commit is contained in:
Kerollmops 2020-07-12 10:55:09 +02:00
parent 2c62eeea3c
commit 12358476da
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
7 changed files with 150 additions and 39 deletions

View file

@ -4,8 +4,9 @@ use std::path::PathBuf;
use std::time::Instant;
use heed::EnvOpenOptions;
use structopt::StructOpt;
use log::debug;
use milli::{Index, BEU32};
use structopt::StructOpt;
#[cfg(target_os = "linux")]
#[global_allocator]
@ -62,7 +63,7 @@ fn main() -> anyhow::Result<()> {
}
}
eprintln!("Took {:.02?} to find {} documents", before.elapsed(), documents_ids.len());
debug!("Took {:.02?} to find {} documents", before.elapsed(), documents_ids.len());
}
Ok(())