[go: nahoru, domu]

Skip to content

Commit

Permalink
Provide an ApplicationPackage to the flutter_tools logs command (#123149
Browse files Browse the repository at this point in the history
)

Provide an ApplicationPackage to the flutter_tools logs command
  • Loading branch information
jason-simmons committed Mar 22, 2023
1 parent 92857dd commit d81e915
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/flutter_tools/lib/src/commands/logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import 'dart:async';

import '../application_package.dart';
import '../base/common.dart';
import '../base/io.dart';
import '../device.dart';
Expand Down Expand Up @@ -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:');

Expand Down

0 comments on commit d81e915

Please sign in to comment.