log errors to console in production.