mod logging to with poisoning retry
This commit is contained in:
@@ -274,11 +274,13 @@ impl MixtcpResponse {
|
||||
}
|
||||
|
||||
fn init_logging() {
|
||||
if tracing::dispatcher::has_been_set() {
|
||||
return;
|
||||
}
|
||||
INIT.call_once(|| {
|
||||
nym_bin_common::logging::setup_tracing_logger();
|
||||
INIT.call_once_force(|state| {
|
||||
if state.is_poisoned() {
|
||||
eprintln!("Logger initialization was poisoned, retrying");
|
||||
}
|
||||
if !tracing::dispatcher::has_been_set() {
|
||||
nym_bin_common::logging::setup_tracing_logger();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user