|
|
@ -146,7 +146,6 @@ impl EventListener { |
|
|
|
} |
|
|
|
} |
|
|
|
impl<S: Subscriber> Layer<S> for EventListener { |
|
|
|
impl<S: Subscriber> Layer<S> for EventListener { |
|
|
|
fn on_event(&self, ev: &tracing::Event, _: Context<S>) { |
|
|
|
fn on_event(&self, ev: &tracing::Event, _: Context<S>) { |
|
|
|
println!("event name: {}", ev.metadata().name()); |
|
|
|
|
|
|
|
if !self.filters.matches_metadata(ev.metadata()) { |
|
|
|
if !self.filters.matches_metadata(ev.metadata()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|