[flutter_tools] create NotifyingLogger at the top level when running flutter run --machine or flutter attach --machine (#59087)

Removes dependency on injecting additional logger with zones
This commit is contained in:
Jonah Williams
2020-06-09 15:39:27 -07:00
committed by GitHub
parent afe8bf7c4d
commit d911eadf95
5 changed files with 38 additions and 3 deletions

View File

@@ -65,7 +65,9 @@ Future<void> main(List<String> args) async {
(args.isNotEmpty && args.first == 'help') || (args.length == 1 && verbose);
final bool muteCommandLogging = help || doctor;
final bool verboseHelp = help && verbose;
final bool daemon = args.contains('daemon');
final bool daemon = args.contains('daemon') ||
(args.contains('--machine') && args.contains('run')) ||
(args.contains('--machine') && args.contains('attach'));
await runner.run(args, () => <FlutterCommand>[
AnalyzeCommand(