Skip to content

Commit

Permalink
Fix rust log level comparison (pantsbuild#5918)
Browse files Browse the repository at this point in the history
I've manually verified that this works by adding some warn!, info! and
debug! statements, and seeing that they get displayed appropriately.

There isn't a non-convoluted test I can add here, because we don't info
or warn log things on any usefully testable paths.
  • Loading branch information
illicitonion authored and Stu Hood committed Jun 7, 2018
1 parent a7c7bcf commit 8c2e484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/engine/src/externs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ impl FfiLogger {

impl log::Log for FfiLogger {
fn enabled(&self, metadata: &log::Metadata) -> bool {
metadata.level() >= self.level_filter
metadata.level() <= self.level_filter
}

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

0 comments on commit 8c2e484

Please sign in to comment.