1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Update index logging

This commit is contained in:
Roman Zeyde 2018-05-22 09:43:52 +03:00
parent e5ecd13658
commit e5da12a5e8
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
2 changed files with 1 additions and 8 deletions

View File

@ -79,7 +79,6 @@ fn run_server(config: &Config) {
store.compact_if_needed();
drop(store); // to be re-opened soon
info!("{:?} indexed successfully", index.headers_list());
let store = store::DBStore::open(config.db_path(), store::StoreOptions { auto_compact: true });
let query = query::Query::new(&store, &daemon, &index);

View File

@ -6,7 +6,6 @@ use bitcoin::network::serialize::{deserialize, serialize};
use bitcoin::util::hash::Sha256dHash;
use crypto::digest::Digest;
use crypto::sha2::Sha256;
use log::Level;
use pbr;
use std::io::{stderr, Stderr};
use std::sync::{Arc, RwLock};
@ -358,12 +357,7 @@ impl Index {
.iter()
.filter(|entry| !indexed_headers.contains_key(&entry.hash()))
.collect();
log!(
if missing_headers.is_empty() {
Level::Debug
} else {
Level::Info
},
info!(
"{:?} ({} left to index)",
current_headers,
missing_headers.len(),