You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve logs that LoggingPanel would previously overwrite
LoggingPanel upon its import, changes the Python interpreter's root
logger to log into a handler that collects its records for the
LoggingPanel's display.
However for users that don't explicitly configure the root logger this
looks like the Debug Toolbar suppresses their logs that previously
went to standard error.
With this commit, the logs will still keep going to standard error
even if the LoggingPanel is installed, but only if the root logger has
not been explicitly configured with a handler yet.
This behavior will make it so that installing DDT won't break logging
neither for users that already have logging customizations nor for
users that have an out-of-the-box django default logging setup.
Also: change LOGGING config in tests/settings.py because now DDT's own
test suite would show more logs without an explicit config.
0 commit comments