We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92857dd commit d81e915Copy full SHA for d81e915
packages/flutter_tools/lib/src/commands/logs.dart
@@ -4,6 +4,7 @@
4
5
import 'dart:async';
6
7
+import '../application_package.dart';
8
import '../base/common.dart';
9
import '../base/io.dart';
10
import '../device.dart';
@@ -50,7 +51,11 @@ class LogsCommand extends FlutterCommand {
50
51
cachedDevice.clearLogs();
52
}
53
- final DeviceLogReader logReader = await cachedDevice.getLogReader();
54
+ final ApplicationPackage? app = await applicationPackages?.getPackageForPlatform(
55
+ await cachedDevice.targetPlatform,
56
+ );
57
+
58
+ final DeviceLogReader logReader = await cachedDevice.getLogReader(app: app);
59
60
globals.printStatus('Showing $logReader logs:');
61
0 commit comments