Skip to content

Logging.catch_exceptions should be overridable for tests #52143

Open
@Drvi

Description

It is very useful to know that loggers can't crash a program, but IMO during tests, one would prefer to know the logging is broken by getting an exception. Especially in the CI context, where usually don't inspect the logs if the CI run succeeded.

It would thus be useful if Logging.catch_exceptions could be toggled by an environment variable for testing purposes.

Metadata

Assignees

No one assigned

    Labels

    loggingThe logging frameworktestThis change adds or pertains to unit tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions