def __init__(self, hostname):
        self._server = None
        self._port = None
        self._started = threading.Event()  # Signals listener has started.
        self._thread = threading.Thread(name=hostname+'-log-listener',
                                        target=self._listen, args=(hostname,))
        self._thread.daemon = True
        self._thread.start()
        self._started.wait(10)
        if self._port is None:
            raise RuntimeError('Timeout starting thread for %s' % hostname)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/log.py/_LogListener.__init__/original