diff options
author | Brendan Jackman <brendan.jackman@arm.com> | 2017-10-20 16:08:32 +0100 |
---|---|---|
committer | Brendan Jackman <brendan.jackman@arm.com> | 2017-10-20 16:08:32 +0100 |
commit | a679d579fd7bf4f7fbcf42b74334ee9b95db9931 (patch) | |
tree | e4cfc974b7c207e2151ac91f5a419219def4bbc9 | |
parent | 16d5e0b6a78c676449596b3bae41ff65979b4181 (diff) | |
download | devlib-a679d579fd7bf4f7fbcf42b74334ee9b95db9931.tar.gz |
LogcatMonitor: Fix opening logfile for write
-rw-r--r-- | devlib/utils/android.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devlib/utils/android.py b/devlib/utils/android.py index 318b4d0..14cb253 100644 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -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() |