Install panic hook

This commit is contained in:
Michael Vines 2018-07-17 10:48:46 -07:00
parent 7d872f52f4
commit fb11d8a909
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ use clap::{App, Arg};
use solana::crdt::NodeInfo;
use solana::drone::{Drone, DroneRequest};
use solana::fullnode::Config;
use solana::metrics::set_panic_hook;
use solana::signature::read_keypair;
use std::fs::File;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
@ -23,6 +24,7 @@ use tokio_codec::{BytesCodec, Decoder};
fn main() {
env_logger::init();
set_panic_hook();
let matches = App::new("solana-client-demo")
.arg(
Arg::with_name("leader")

View File

@ -8,6 +8,7 @@ extern crate solana;
use clap::{App, Arg};
use solana::crdt::{NodeInfo, TestNode};
use solana::fullnode::{Config, FullNode, LedgerFile};
use solana::metrics::set_panic_hook;
use solana::service::Service;
use solana::signature::{KeyPair, KeyPairUtil};
use std::fs::File;
@ -17,6 +18,7 @@ use std::process::exit;
fn main() -> () {
env_logger::init();
set_panic_hook();
let matches = App::new("fullnode")
.arg(
Arg::with_name("identity")