Reduce logging in production mode.