Do not cache logging when running test suite in prod settings
Do not cache logging when running test suite in prod settings

Since our CI config runs the test suite with prod settings, we have to
apply the same logger caching logic as in the development settings.

freedomofpress/securethenews,freedomofpress/securethenews,freedomofpress/securethenews,freedomofpress/securethenews