Skip to content

Come up with a logging solution for tests. #357

@Yawning

Description

@Yawning

We have standardized on log as our logging library. The pretty_env_logger (or env_logger for that matter) logs to stderr, but the output file descriptor can be changed at initialization time to stdout. cargo test is supposed to capture all writes to stdout to avoid spam (cargo test -- --nocapture disables this behavior), but this is currently broken (rust-lang/rust#42474), in the context of multi-threaded code.

It would be nice to have logs that can be enabled/disabled for the tests, if only for debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c:testingCategory: testingp:2Priority: desired feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions