()
| 9 | use tracing_subscriber::layer::SubscriberExt as _; |
| 10 | |
| 11 | fn install_tracing_subscriber() { |
| 12 | static ONCE: std::sync::Once = std::sync::Once::new(); |
| 13 | ONCE.call_once(|| { |
| 14 | tracing::subscriber::set_global_default( |
| 15 | tracing_subscriber::Registry::default().with(ErrorLayer::default()), |
| 16 | ) |
| 17 | .expect("Could not set tracing subscriber"); |
| 18 | }); |
| 19 | } |
| 20 | |
| 21 | #[test] |
| 22 | fn captured() { |