Move logging to lightclient

This commit is contained in:
Arjun
2019-11-15 10:30:23 -08:00
committed by Aditya Kulkarni
parent 61dc063fe1
commit 96997c5a46
3 changed files with 58 additions and 54 deletions

View File

@@ -628,10 +628,7 @@ impl Command for HeightCommand {
fn exec(&self, _args: &[&str], lightclient: &LightClient) -> String {
match lightclient.do_sync(true) {
Ok(_) => format!("{}",
object! {
"height" => lightclient.last_scanned_height()
}.pretty(2)),
Ok(_) => format!("{}", object! { "height" => lightclient.last_scanned_height()}.pretty(2)),
Err(e) => e
}
}