Improved logging (#138)

* Improved logging

* Removed some unwraps
This commit is contained in:
Arkadiy Paronyan
2018-04-18 15:57:43 +02:00
committed by Robert Habermeier
parent 7f2c798a06
commit be23db6916
3 changed files with 45 additions and 4 deletions
+1 -3
View File
@@ -45,7 +45,7 @@ pub fn start(service: &Service, handle: reactor::Handle) {
(SyncState::Downloading, None) => "Syncing".into(),
(SyncState::Downloading, Some(n)) => format!("Syncing, target=#{}", n),
};
println!("{} ({} peers), best: #{} ({})", status, sync_status.num_peers, best_block.number, hash)
info!(target: "polkadot", "{} ({} peers), best: #{} ({})", status, sync_status.num_peers, best_block.number, hash)
} else {
warn!("Error getting best block information");
}
@@ -62,5 +62,3 @@ pub fn start(service: &Service, handle: reactor::Handle) {
handle.spawn(display_block_import);
}