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

This commit is contained in:
rl1987 2018-11-13 11:38:51 +02:00 committed by Nick Mathewson
parent 4c4ed413ee
commit 945c4dfda0

View File

@ -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