Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2305)

Unified Diff: build/android/adb_logcat_monitor.py

Issue 17438004: [Android] Clear adb logcat during adb_logcat_monitor startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_logcat_monitor.py
diff --git a/build/android/adb_logcat_monitor.py b/build/android/adb_logcat_monitor.py
index aeaef0b093b80db7083578c0b305de2dd2fe787f..35ef7905b24fcb9a30506f5e0d246d3f52085214 100755
--- a/build/android/adb_logcat_monitor.py
+++ b/build/android/adb_logcat_monitor.py
@@ -126,6 +126,7 @@ def main(base_dir, adb_cmd='adb'):
while True:
for device_id in GetAttachedDevices(adb_cmd):
if not device_id in devices:
+ subprocess.call([adb_cmd, '-s', device_id, 'logcat', '-c'])
Isaac (away) 2013/06/19 00:10:33 This should only be done during initialization, no
frankf 2013/06/19 00:18:54 No, this is the first time you're seeing this devi
devices[device_id] = (None, 0)
for device in devices:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698