Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt: fix EnvFilter rejecting levels equal to the filter level #75

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Jun 21, 2019

Motivation

PR #72 introduced a bug in EnvFilter where spans and events whose
level is equal to the filter's max level are rejected, rather than
accepted.

Solution

This branch fixes the comparisons so that filters once again
work as expected.

Signed-off-by: Eliza Weisman [email protected]

PR #72 introduced a bug in `EnvFilter` where spans and events whose
level is _equal_ to the filter's max level are rejected, rather than
accepted. This branch fixes the comparisons so that filters once again
work as expected.

Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw added kind/bug Something isn't working crate/fmt Related to the `tracing-fmt` crate labels Jun 21, 2019
@hawkw hawkw requested a review from LucioFranco June 21, 2019 21:58
@hawkw hawkw self-assigned this Jun 21, 2019
@hawkw hawkw merged commit 2bf7c61 into master Jun 21, 2019
@hawkw hawkw deleted the eliza/fix-wrong-filters branch June 21, 2019 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate/fmt Related to the `tracing-fmt` crate kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant