diff --git a/elfo-logger/src/filtering_layer.rs b/elfo-logger/src/filtering_layer.rs index 18ec3579..e70051c3 100644 --- a/elfo-logger/src/filtering_layer.rs +++ b/elfo-logger/src/filtering_layer.rs @@ -99,7 +99,7 @@ impl Layer 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; }