mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Revert "feat: Introduce NodeBuilder" (#5868)
This commit is contained in:
@ -33,8 +33,7 @@ pub type BoxedLayer<S> = Box<dyn Layer<S> + Send + Sync>;
|
||||
|
||||
/// Initializes a new [Subscriber] based on the given layers.
|
||||
pub fn init(layers: Vec<BoxedLayer<Registry>>) {
|
||||
// To avoid panicking in tests, we silently fail if we cannot initialize the subscriber.
|
||||
let _ = tracing_subscriber::registry().with(layers).try_init();
|
||||
tracing_subscriber::registry().with(layers).init();
|
||||
}
|
||||
|
||||
/// Builds a new tracing layer that writes to stdout.
|
||||
|
||||
Reference in New Issue
Block a user