[flutter_tools] expand Regexp log match to include more AndroidRuntime failures (#56943)

This commit is contained in:
Jonah Williams
2020-05-12 07:35:02 -07:00
committed by GitHub
parent 7ed0950e05
commit 7f400af35a
2 changed files with 41 additions and 0 deletions

View File

@@ -986,6 +986,7 @@ class AdbLogReader extends DeviceLogReader {
RegExp(r'^[VDIWEF]\/flutter[^:]*:\s+', caseSensitive: false),
RegExp(r'^[IE]\/DartVM[^:]*:\s+'),
RegExp(r'^[WEF]\/AndroidRuntime:\s+'),
RegExp(r'^[WEF]\/AndroidRuntime\([0-9]+\):\s+'),
RegExp(r'^[WEF]\/ActivityManager:\s+.*(\bflutter\b|\bdomokit\b|\bsky\b)'),
RegExp(r'^[WEF]\/System\.err:\s+'),
RegExp(r'^[F]\/[\S^:]+:\s+'),
@@ -1019,6 +1020,7 @@ class AdbLogReader extends DeviceLogReader {
}
final Match timeMatch = AndroidDevice._timeRegExp.firstMatch(line);
if (timeMatch == null || line.length == timeMatch.end) {
_acceptedLastLine = false;
return;
}
// Chop off the time.