Install panic hook
This commit is contained in:
parent
7d872f52f4
commit
fb11d8a909
|
@ -12,6 +12,7 @@ use clap::{App, Arg};
|
||||||
use solana::crdt::NodeInfo;
|
use solana::crdt::NodeInfo;
|
||||||
use solana::drone::{Drone, DroneRequest};
|
use solana::drone::{Drone, DroneRequest};
|
||||||
use solana::fullnode::Config;
|
use solana::fullnode::Config;
|
||||||
|
use solana::metrics::set_panic_hook;
|
||||||
use solana::signature::read_keypair;
|
use solana::signature::read_keypair;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
|
||||||
|
@ -23,6 +24,7 @@ use tokio_codec::{BytesCodec, Decoder};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
set_panic_hook();
|
||||||
let matches = App::new("solana-client-demo")
|
let matches = App::new("solana-client-demo")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("leader")
|
Arg::with_name("leader")
|
||||||
|
|
|
@ -8,6 +8,7 @@ extern crate solana;
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use solana::crdt::{NodeInfo, TestNode};
|
use solana::crdt::{NodeInfo, TestNode};
|
||||||
use solana::fullnode::{Config, FullNode, LedgerFile};
|
use solana::fullnode::{Config, FullNode, LedgerFile};
|
||||||
|
use solana::metrics::set_panic_hook;
|
||||||
use solana::service::Service;
|
use solana::service::Service;
|
||||||
use solana::signature::{KeyPair, KeyPairUtil};
|
use solana::signature::{KeyPair, KeyPairUtil};
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
@ -17,6 +18,7 @@ use std::process::exit;
|
||||||
|
|
||||||
fn main() -> () {
|
fn main() -> () {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
set_panic_hook();
|
||||||
let matches = App::new("fullnode")
|
let matches = App::new("fullnode")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("identity")
|
Arg::with_name("identity")
|
||||||
|
|
Loading…
Reference in New Issue