Removing some log outputs in production mode