Skip to content

Commit

Permalink
added logging support module
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbuffalo committed Aug 20, 2023
1 parent 01bebe6 commit 7a634fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/logging_setup.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Central place to initialize logging across tests and binary.
use std::sync::Once;

static INIT: Once = Once::new();

pub fn setup() {
INIT.call_once(|| {
env_logger::init();
});
}

0 comments on commit 7a634fd

Please sign in to comment.