mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 05:30:44 +00:00
LogcatMonitor: Fix opening logfile for write
This commit is contained in:
parent
16d5e0b6a7
commit
a679d579fd
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user