Skip to content

Unexpected behavior with max_level_* in dependencies. #309

@olivia-fl

Description

@olivia-fl

I ran into an issue where one of my transitive dependencies set release_max_level_error. This meant that when I tried to specify release_max_level_info, it didn't actually do anything in either my crate or the dependency. This is both rather confusing to debug, and means that there's currently no way I can get my crate to output info! calls on release builds.

In my case, it would be better to revert the ordering of which max_level_* features override others, os that max_level_info would take priority over max_level_error, but I could also easily imagine a situation where this would be reversed.

Because of this, I'm not sure if there's a reasonable solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions