Skip to content

Commit

Permalink
test: add names to subscribers
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Aug 12, 2020
1 parent ef9ea9b commit 8ad2a1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracing/tests/multiple_max_level_hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn multiple_max_level_hints() {
}

let (subscriber1, handle1) = subscriber::mock()
.named("subscriber1")
.with_max_level_hint(Level::INFO)
.with_filter(|meta| {
let level = dbg!(meta.level());
Expand All @@ -40,6 +41,7 @@ fn multiple_max_level_hints() {
.done()
.run_with_handle();
let (subscriber2, handle2) = subscriber::mock()
.named("subscriber2")
.with_max_level_hint(Level::DEBUG)
.with_filter(|meta| {
let level = dbg!(meta.level());
Expand Down

0 comments on commit 8ad2a1d

Please sign in to comment.