Open romainmoreau opened 7 years ago
I am not sure what we can do about it. It's a chicken and egg problem. When that code runs, the Environment
has not been prepared yet. We want the environment to contribute to the initialization of the logging system (pattern, loggers, etc).
The filter is there on purpose to avoid an early init of the logging system.
Incidentally #14239 changed the logic so that invalid JSON fails the app.
The default logging system is used (Logback).
For instance, the warning logged here is dismissed. This behavior appears because at the time the warning is logged, the Logback context contains a filter that denies everything.
This issue is similar to #7758 but it's with Logback.
Here's a quick and dirty demo: