diff --git a/bin/durs-server/Cargo.toml b/bin/durs-server/Cargo.toml index 84e3b7798b2529b7859c5a427ba4ee32c4aed57c..37da50e585c20eeec858678f530e6814b8597135 100644 --- a/bin/durs-server/Cargo.toml +++ b/bin/durs-server/Cargo.toml @@ -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"] diff --git a/lib/core/core/Cargo.toml b/lib/core/core/Cargo.toml index 172c3820aecf9aac5465917fc42bc34c421c987a..ea95b7a55c293fc69b8a4c8f6801d8cf0e16e21b 100644 --- a/lib/core/core/Cargo.toml +++ b/lib/core/core/Cargo.toml @@ -28,4 +28,3 @@ structopt= "0.2.*" threadpool = "1.7.*" [features] -log_panics = [] diff --git a/lib/core/core/lib.rs b/lib/core/core/lib.rs index fd90de87c2f5c2da4440e186ea748b9642ea6c2d..f97e6a977845a89c1ac77f3ef5744c231da2ec5e 100644 --- a/lib/core/core/lib.rs +++ b/lib/core/core/lib.rs @@ -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,