def get_logs(logs):
    """
    Allow to transform generator of logs to readable list of str

    :param logs: generator of logs from an other process
    :return: a list of values given by the logs generator until "StopIteration"
    """
    outputs = []
    while True:
        try:
            outputs.append(logs.__next__().decode("utf-8").rstrip())
        except StopIteration:
            break
    return outputs