Clear adb logs before every run

This commit is contained in:
Slava Kim
2014-08-11 21:30:18 -07:00
parent 6acde3e4e3
commit 01c7c89f5d

View File

@@ -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,
});