Only log errors in production