Skip to content

Commit

Permalink
utils: Capture tracing output in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Aug 21, 2024
1 parent cbd72bb commit 3b2cbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub fn hex_to_array(hex: &str, output: &mut [u8]) {
/// Returns `Err` if `tracing` can't be initialized. Multiple subscription error
/// is emmitted and will return `Ok(())`.
pub fn initialize_logger() -> Result<(), tracing_subscriber::util::TryInitError> {
let layer = fmt::layer();
let layer = fmt::layer().with_test_writer();
let filter = EnvFilter::from_default_env();

if let Err(e) = tracing_subscriber::registry()
Expand Down

0 comments on commit 3b2cbd5

Please sign in to comment.