We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acaa98d commit b1debf0Copy full SHA for b1debf0
opentelemetry-sdk/src/logs/log_emitter.rs
@@ -323,13 +323,10 @@ impl opentelemetry::logs::Logger for Logger {
323
324
#[cfg(feature = "spec_unstable_logs_enabled")]
325
fn event_enabled(&self, level: Severity, target: &str) -> bool {
326
- let provider = &self.provider;
327
-
328
- let mut enabled = false;
329
- for processor in provider.log_processors() {
330
- enabled = enabled || processor.event_enabled(level, target, self.scope.name().as_ref());
331
- }
332
- enabled
+ self.provider
+ .log_processors()
+ .iter()
+ .any(|processor| processor.event_enabled(level, target, self.scope.name().as_ref()))
333
}
334
335
0 commit comments