Silence logging in tests unless CRITICAL.