commit | 3056e333e16697a5fa71b4e754e7d53fa26c825d | [log] [tgz] |
---|---|---|
author | setrofim <setrofim@gmail.com> | Mon Oct 23 12:55:02 2017 +0100 |
committer | GitHub <noreply@github.com> | Mon Oct 23 12:55:02 2017 +0100 |
tree | e4cfc974b7c207e2151ac91f5a419219def4bbc9 | |
parent | 16d5e0b6a78c676449596b3bae41ff65979b4181 [diff] | |
parent | a679d579fd7bf4f7fbcf42b74334ee9b95db9931 [diff] |
Merge pull request #195 from bjackman/fix-logcat-logfile LogcatMonitor: Fix opening logfile for write
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 @@ :type outfile: str """ if outfile: - self._logfile = open(outfile) + self._logfile = open(outfile, 'w') else: self._logfile = tempfile.NamedTemporaryFile()