From b885ef63ec244a2ae868ad6702ce5815ec1593b2 Mon Sep 17 00:00:00 2001 From: Goldstein Date: Fri, 25 Aug 2023 11:59:58 +0300 Subject: [PATCH] use target instead of module_path --- elfo-logger/src/filtering_layer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }