diff --git a/elfo-logger/src/filtering_layer.rs b/elfo-logger/src/filtering_layer.rs index 006089a1..bea50944 100644 --- a/elfo-logger/src/filtering_layer.rs +++ b/elfo-logger/src/filtering_layer.rs @@ -89,6 +89,11 @@ impl Layer for FilteringLayer { if std::ptr::eq(log_name, name) { let config = self.inner.config.load(); if !config.targets.would_enable(meta.target(), meta.level()) { + tracing::error!( + "WTF filtered log from {} on {}", + meta.target(), + meta.level(), + ); return false; } } @@ -97,6 +102,11 @@ impl Layer for FilteringLayer { self.inner.log_metadata_name.set(name).ok(); let config = self.inner.config.load(); if !config.targets.would_enable(meta.target(), meta.level()) { + tracing::error!( + "WTF filtered log from {} on {}", + meta.target(), + meta.level(), + ); return false; } }