Unverified Commit d81e9157 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Provide an ApplicationPackage to the flutter_tools logs command (#123149)

Provide an ApplicationPackage to the flutter_tools logs command
parent 92857dd0
......@@ -4,6 +4,7 @@
import 'dart:async';
import '../application_package.dart';
import '../base/common.dart';
import '../base/io.dart';
import '../device.dart';
......@@ -50,7 +51,11 @@ class LogsCommand extends FlutterCommand {
cachedDevice.clearLogs();
}
final DeviceLogReader logReader = await cachedDevice.getLogReader();
final ApplicationPackage? app = await applicationPackages?.getPackageForPlatform(
await cachedDevice.targetPlatform,
);
final DeviceLogReader logReader = await cachedDevice.getLogReader(app: app);
globals.printStatus('Showing $logReader logs:');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment