Skip to content

Commit

Permalink
fix(log): Report correct log_enabled (seanmonstar#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer authored Jan 10, 2019
1 parent 5fdaef7 commit e520d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub fn event_from_record(record: &log::Record, with_stacktrace: bool) -> Event<'
impl log::Log for Logger {
fn enabled(&self, md: &log::Metadata) -> bool {
if let Some(global_filter) = self.options.global_filter {
if md.level() < global_filter {
if md.level() > global_filter {
return false;
}
}
Expand Down

0 comments on commit e520d1b

Please sign in to comment.