From 01c7c89f5de5cf4541e1f235e2bbde8ffecffba3 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Mon, 11 Aug 2014 21:30:18 -0700 Subject: [PATCH] Clear adb logs before every run --- tools/commands-cordova.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index c4828d384d..9421480cb6 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -442,6 +442,8 @@ var execCordovaOnPlatform = function (localPath, platformName) { // print the log file execFileAsync('tail', ['-f', logFilePath], { lineMapper: iosMapper }); } else if (platform === 'android') { + // clear the logcat logs from the previous run + execFileSync(localAdb, ['logcat', '-c']); execFileAsync(localAdb, ['logcat', '-s', 'CordovaLog'], { lineMapper: androidMapper, });