Make sure logging doesn't fail during tests.