From 8c61116c006ff5b4b7ed9555f0d734f2bc5beee8 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 7 Sep 2017 10:25:41 -0700 Subject: [PATCH] Eliminate iOS log blacklist (#11981) This was introduced to suppress libMobileGestalt noise originating from libsystem_asl.dylib. Commit 39680ebfbdf787f81b5765236af0bdce9b64c9c7 suppresses all application log messages not originating from the app/engine iteself on iOS 10 and above. Since the log message in question is only emitted on devices running iOS >= 10.3.0, this blacklist no longer necessary. --- packages/flutter_tools/lib/src/ios/devices.dart | 11 ++--------- packages/flutter_tools/test/ios/devices_test.dart | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index f31789145c..6071b1e240 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -385,19 +385,12 @@ class _IOSDeviceLogReader extends DeviceLogReader { } void _onLine(String line) { - // Lines starting with these strings are suppressed from output as noise. - const List blacklist = const [ - 'libMobileGestalt ', - ]; - final Match match = _lineRegex.firstMatch(line); if (match != null) { final String logLine = line.substring(match.end); - if (!blacklist.any(logLine.startsWith)) { - // Only display the log line after the initial device and executable information. - _linesController.add(logLine); - } + // Only display the log line after the initial device and executable information. + _linesController.add(logLine); } } diff --git a/packages/flutter_tools/test/ios/devices_test.dart b/packages/flutter_tools/test/ios/devices_test.dart index 0c21dcf05d..e589c1c5f3 100644 --- a/packages/flutter_tools/test/ios/devices_test.dart +++ b/packages/flutter_tools/test/ios/devices_test.dart @@ -79,7 +79,7 @@ f577a7903cc54959be2e34bc4f7f80b7009efcf4 mockIMobileDevice = new MockIMobileDevice(); }); - testUsingContext('suppresses blacklisted lines from output', () async { + testUsingContext('suppresses non-Flutter lines from output', () async { when(mockIMobileDevice.startLogger()).thenAnswer((_) { final Process mockProcess = new MockProcess(); when(mockProcess.stdout).thenReturn(new Stream>.fromIterable(>['''