fetchBuildLog static method

Future<List<LogRecord>> fetchBuildLog(
  1. Client cloudApiClient, {
  2. required String projectId,
  3. required UuidValue attemptId,
})

Implementation

static Future<List<LogRecord>> fetchBuildLog(
  final Client cloudApiClient, {
  required final String projectId,
  required final UuidValue attemptId,
}) async {
  try {
    return await cloudApiClient.logs
        .fetchBuildLog(cloudCapsuleId: projectId, attemptId: attemptId)
        .toList();
  } on Exception catch (e, s) {
    throw FailureException.nested(e, s, 'Error while fetching log records');
  }
}