1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

LogcatMonitor: Fix opening logfile for write

This commit is contained in:
Brendan Jackman 2017-10-20 16:08:32 +01:00
parent 16d5e0b6a7
commit a679d579fd

View File

@ -575,7 +575,7 @@ class LogcatMonitor(object):
:type outfile: str
"""
if outfile:
self._logfile = open(outfile)
self._logfile = open(outfile, 'w')
else:
self._logfile = tempfile.NamedTemporaryFile()