Log errors in batch API calls.