mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test(tracing): allow tracer init to fail (#5988)
This commit is contained in:
@ -208,7 +208,9 @@ impl Tracer for RethTracer {
|
||||
None
|
||||
};
|
||||
|
||||
tracing_subscriber::registry().with(layers.into_inner()).init();
|
||||
// The error is returned if the global default subscriber is already set,
|
||||
// so it's safe to ignore it
|
||||
let _ = tracing_subscriber::registry().with(layers.into_inner()).try_init();
|
||||
Ok(file_guard)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user