Commit 945c4dfd authored by rl1987's avatar rl1987 Committed by Nick Mathewson
Browse files

Also log a Tor log entry when it has a substring we are waiting for

parent 4c4ed413
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ def wait_for_log(s):
        l = tor_process.stdout.readline()
        l = l.decode('utf8')
        if s in l:
            logging.info('Tor logged: "{}"'.format(l.strip()))
            return
        logging.info('Tor logged: "{}", waiting for "{}"'.format(l.strip(), s))
        # readline() returns a blank string when there is no output