Disabling some logging in release builds