Skip to content

Commit

Permalink
Merge pull request #53 from inejge/master
Browse files Browse the repository at this point in the history
Add check for global filtering levels in Log::enabled() impl
  • Loading branch information
Geal authored Dec 5, 2021
2 parents 4f7b35e + efc7ba4 commit f488cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ impl BasicLogger {
#[allow(unused_variables, unused_must_use)]
impl Log for BasicLogger {
fn enabled(&self, metadata: &Metadata) -> bool {
true
metadata.level() <= log::max_level() && metadata.level() <= log::STATIC_MAX_LEVEL
}

fn log(&self, record: &Record) {
Expand Down

0 comments on commit f488cbf

Please sign in to comment.