use tracing::Level;
// TODO: document this
// TODO: document this
// TODO: document this
// TODO: document this
// TODO: document this
pub fn init(level: Level) {
if tracing::dispatcher::has_been_set() {
return;
}
tracing_subscriber::fmt()
.with_max_level(level)
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.init();
}