From a679d579fd7bf4f7fbcf42b74334ee9b95db9931 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Fri, 20 Oct 2017 16:08:32 +0100 Subject: [PATCH] LogcatMonitor: Fix opening logfile for write --- devlib/utils/android.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()