Logging.catch_exceptions
should be overridable for tests #52143
Open
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.