Added more details to error logging in apiv2