Enable the whole logcat log (#143119)

Help with https://github.com/flutter/flutter/issues/142572.
This commit is contained in:
keyonghan 2024-02-08 11:10:07 -08:00 committed by GitHub
parent aed2ae54e1
commit e64a372d6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -742,13 +742,8 @@ class AndroidDevice extends Device {
}
_loggingProcess = await startProcess(
adbPath,
// Make logcat less chatty by filtering down to just ActivityManager
// (to let us know when app starts), flutter (needed by tests to see
// log output), and fatal messages (hopefully catches tombstones).
// For local testing, this can just be:
// <String>['-s', deviceId, 'logcat']
// to view the whole log, or just run logcat alongside this.
<String>['-s', deviceId, 'logcat', 'ActivityManager:I', 'flutter:V', '*:F'],
// Catch the whole log.
<String>['-s', deviceId, 'logcat'],
);
_loggingProcess!.stdout
.transform<String>(const Utf8Decoder(allowMalformed: true))