Skip to content

Commit

Permalink
use target instead of module_path
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldsteinE committed Aug 25, 2023
1 parent 24b9666 commit b885ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elfo-logger/src/filtering_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<S: Subscriber> Layer<S> for FilteringLayer {
}
// That's "initialized tracing_log adapter" to set `log_metadata_name`, just
// ignore it. Any actual logs from `elfo_logger` would use `tracing`.
if meta.module_path() == Some("elfo_logger") {
if meta.target() == "elfo_logger" {
self.inner.log_metadata_name.set(name).ok();
return false;
}
Expand Down

0 comments on commit b885ef6

Please sign in to comment.