Suppress non-Flutter log messages in terminal (#11969)

On iOS 10 and above, suppress engine log messages from system components
other than Flutter. This eliminates a large amount of keyboard/plugin
related noise during edit-refresh development.
This commit is contained in:
Chris Bracken
2017-09-06 19:46:40 -07:00
committed by GitHub
parent a67d648742
commit 39680ebfbd
2 changed files with 5 additions and 4 deletions

View File

@@ -356,9 +356,9 @@ class _IOSDeviceLogReader extends DeviceLogReader {
// Match for lines for the runner in syslog.
//
// iOS 9 format: Runner[297] <Notice>:
// iOS 10 format: Runner(libsystem_asl.dylib)[297] <Notice>:
// iOS 10 format: Runner(Flutter)[297] <Notice>:
final String appName = app == null ? '' : app.name.replaceAll('.app', '');
_lineRegex = new RegExp(appName + r'(\(.*\))?\[[\d]+\] <[A-Za-z]+>: ');
_lineRegex = new RegExp(appName + r'(\(Flutter\))?\[[\d]+\] <[A-Za-z]+>: ');
}
final IOSDevice device;