Skip to content
Snippets Groups Projects
Commit 51c6ec27 authored by Éloïs's avatar Éloïs
Browse files

[fix] use auto log_panics when start

parent 535e6eb7
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,5 @@ structopt= "0.2.*"
durs-tui = { path = "../../lib/modules/tui" }
[features]
log_panics = ["duniter-core/log_panics"]
ssl = ["durs-ws2p-v1-legacy/ssl"]
......@@ -28,4 +28,3 @@ structopt= "0.2.*"
threadpool = "1.7.*"
[features]
log_panics = []
......@@ -239,11 +239,6 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
// Init logger
init_logger(profile.as_str(), self.soft_meta_datas.soft_name, &cli_args);
// Print panic! in logs
if cfg!(feature = "log_panics") {
log_panics::init();
}
// Load global conf
let (conf, keypairs) = duniter_conf::load_conf(profile.as_str());
info!("Success to load global conf.");
......@@ -285,6 +280,9 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
// Store user command
self.user_command = Some(UserCommand::Start());
// Print panic! in logs
log_panics::init();
// Start router thread
self.router_sender = Some(router::start_router(
self.run_duration_in_secs,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment