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

Fix Vec implementation of tracing_subscriber::layer::Layer #2644

Closed
wants to merge 1 commit into from

Conversation

stormshield-kg
Copy link

Motivation

The Layer implementation for a Vec was introduced in #2027, and a bug in the Layer::enabled() trait method was introduced in 28e55d2, then was further transformed in 012da66.

Solution

This PR fixes the Layer::enabled() and Layer::event_enabled() methods by using fold and inverting the incorrect condition.

@stormshield-kg stormshield-kg requested review from hawkw and a team as code owners July 6, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant