mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Also log a Tor log entry when it has a substring we are waiting for
This commit is contained in:
parent
4c4ed413ee
commit
945c4dfda0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user