[toranj] limit the logs during init of all nodes (#2848)

This commit is contained in:
Abtin Keshavarzian
2018-07-02 10:48:17 -05:00
committed by Jonathan Hui
parent 6bd04ddcda
commit d79bf6f268
+2 -1
View File
@@ -438,7 +438,8 @@ class Node(object):
try:
node.leave()
except subprocess.CalledProcessError as e:
_log(' -> \'{}\' exit code: {}'.format(e.output, e.returncode))
if (node._verbose):
_log(' -> \'{}\' exit code: {}'.format(e.output, e.returncode))
if time.time() - start_time > wait_time:
print 'Took too long to init all nodes ({}>{} sec)'.format(time.time() - start_time, wait_time)
raise