diff --git a/proxmox-log/src/lib.rs b/proxmox-log/src/lib.rs index f4f24e0c..99006515 100644 --- a/proxmox-log/src/lib.rs +++ b/proxmox-log/src/lib.rs @@ -52,10 +52,10 @@ pub fn init_logger( .with( tracing_journald::layer() .expect("Unable to open syslog") - .with_filter(log_level) .with_filter(filter_fn(|metadata| { LogContext::exists() || *metadata.level() == Level::ERROR - })), + })) + .with_filter(log_level), ) .with(TasklogLayer {}.with_filter(log_level));