Add initializing log message to server
Handy when gesesis block is large.
This commit is contained in:
@ -62,8 +62,9 @@ fn main() {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eprintln!("Initializing...");
|
||||||
let mut entries = buffer.lines().map(|line| {
|
let mut entries = buffer.lines().map(|line| {
|
||||||
serde_json::from_str(&line).unwrap_or_else(|e| {
|
serde_json::from_str(&line.unwrap()).unwrap_or_else(|e| {
|
||||||
eprintln!("failed to parse json: {}", e);
|
eprintln!("failed to parse json: {}", e);
|
||||||
exit(1);
|
exit(1);
|
||||||
})
|
})
|
||||||
@ -99,8 +100,8 @@ fn main() {
|
|||||||
stdout(),
|
stdout(),
|
||||||
historian,
|
historian,
|
||||||
)));
|
)));
|
||||||
eprintln!("Listening on {}", addr);
|
|
||||||
let threads = AccountantSkel::serve(&skel, &addr, exit.clone()).unwrap();
|
let threads = AccountantSkel::serve(&skel, &addr, exit.clone()).unwrap();
|
||||||
|
eprintln!("Ready. Listening on {}", addr);
|
||||||
for t in threads {
|
for t in threads {
|
||||||
t.join().expect("join");
|
t.join().expect("join");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user