1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-04-02 16:07:51 +01:00

Merge pull request #195 from bjackman/fix-logcat-logfile

LogcatMonitor: Fix opening logfile for write
This commit is contained in:
setrofim 2017-10-23 12:55:02 +01:00 committed by GitHub
commit 3056e333e1

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()