~matthiasbeyer/imag

1af3cd40f4f3e4d7f251a02bf2d69a6cf20cccda — Matthias Beyer 1 year, 3 months ago b01424e
Fix: If global loglevel allowes record to be logged, log it

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 2 insertions(+), 1 deletions(-)

M lib/core/libimagrt/src/logger.rs
M lib/core/libimagrt/src/logger.rs => lib/core/libimagrt/src/logger.rs +2 -1
@@ 166,7 166,8 @@ impl Log for ImagLogger {
            .get(record_target)
            .map(|module_setting| {
                let set = module_setting.enabled &&
                    module_setting.level.unwrap_or(self.global_loglevel) >= record.level();
                    (module_setting.level.unwrap_or(self.global_loglevel) >= record.level()
                     || self.global_loglevel >= record.level());

                if set {
                    if let Some(destinations) = &module_setting.destinations {