Skip to content

trc env_filter compatibility with tracing #199

@maasteh

Description

@maasteh

trc initializes tracing env_filter using LogSpecification::to_string https://github.com/emabee/flexi_logger/blob/main/src/trc.rs#L232
this adds spaces around = (for visibility I assume) https://github.com/emabee/flexi_logger/blob/main/src/log_specification.rs#L455

This is not compatible with tracing and evn_filters get incorrectly parsed, and ultimately ignored "ignoring crate = level: invalid filter directive".

removing the spaces seem to fix the issue. happy to put up a PR if it sounds reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions