Fixed tracing
setup in tests
This commit is contained in:
parent
7911336f70
commit
7d7ff22526
4 changed files with 29 additions and 12 deletions
|
@ -2,3 +2,16 @@ pub mod api;
|
|||
pub mod messages;
|
||||
pub mod peer;
|
||||
pub mod types;
|
||||
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! tracing_setup {
|
||||
($level:expr) => {
|
||||
let _tracing_default_guard = tracing::subscriber::set_default(
|
||||
tracing_subscriber::fmt()
|
||||
.pretty()
|
||||
.with_max_level($level)
|
||||
.finish(),
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue