tools: wasptool: Fix verbose/not-verbose handling
Fixes: 2839a04
("tools: wasptool: Hide the stack trace on pexpect timeout")
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
fc502cdcaa
commit
2bb0837440
1 changed files with 3 additions and 0 deletions
|
@ -289,6 +289,9 @@ if __name__ == '__main__':
|
|||
if not args.verbose:
|
||||
print_log(console.logfile)
|
||||
sys.exit(1)
|
||||
if not args.verbose:
|
||||
console.logfile.close()
|
||||
console.logfile = None
|
||||
|
||||
macaddr = console.match.group(1)
|
||||
console.expect('Exit console using Ctrl-X')
|
||||
|
|
Loading…
Reference in a new issue