Added logging to Apiv2 errors