log: only print error level to syslog/stderr
We only want to print the error level, and not all the levels below error to stderr/syslog. Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
This commit is contained in:
parent
21c314b56e
commit
1b70270b2d
@ -57,7 +57,7 @@ pub fn init_logger(
|
||||
.with(
|
||||
journald_or_stderr_layer()
|
||||
.with_filter(filter_fn(|metadata| {
|
||||
!LogContext::exists() || *metadata.level() >= Level::ERROR
|
||||
!LogContext::exists() || *metadata.level() == Level::ERROR
|
||||
}))
|
||||
.with_filter(log_level),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user