Prevent console outputs on production environment or legacy browsers.