Disable logging in release builds.