change a printStatus() to a printTrace() (#9992)

This commit is contained in:
Devon Carew
2017-05-11 08:49:26 -07:00
committed by GitHub
parent 2f590eccbc
commit 2f737cf94e
2 changed files with 7 additions and 8 deletions

View File

@@ -375,7 +375,7 @@ class HotRunner extends ResidentRunner {
await _restartFromSources();
timer.stop();
status.cancel();
printStatus('Restarted app in ${getElapsedAsSeconds(timer.elapsed)}.');
printStatus('Restarted app in ${getElapsedAsMilliseconds(timer.elapsed)}.');
return OperationResult.ok;
} catch (error) {
status.cancel();
@@ -412,7 +412,7 @@ class HotRunner extends ResidentRunner {
}
if (!_isPaused()) {
printStatus('Refreshing active FlutterViews before reloading.');
printTrace('Refreshing active FlutterViews before reloading.');
await refreshViews();
}
@@ -528,8 +528,8 @@ class HotRunner extends ResidentRunner {
await view.uiIsolate.flutterReassemble();
} on TimeoutException {
reassembleTimedOut = true;
printTrace("Reassembling ${view.uiIsolate.name} took too long. ");
printStatus("Hot reloading ${view.uiIsolate.name} took too long. Hot reload may have failed.");
printTrace("Reassembling ${view.uiIsolate.name} took too long.");
printStatus("Hot reloading ${view.uiIsolate.name} took too long; the reload may have failed.");
continue;
} catch (error) {
reassembleAndScheduleErrors = true;

View File

@@ -37,14 +37,13 @@ class FlutterCommandRunner extends CommandRunner<Null> {
'flutter',
'Manage your Flutter app development.\n'
'\n'
'Common actions:\n'
'Common commands:\n'
'\n'
' flutter create <output directory>\n'
' Create a new Flutter project in the specified directory.\n'
'\n'
' flutter run [options]\n'
' Run your Flutter application on an attached device\n'
' or in an emulator.',
' Run your Flutter application on an attached device or in an emulator.',
) {
argParser.addFlag('verbose',
abbr: 'v',
@@ -72,7 +71,7 @@ class FlutterCommandRunner extends CommandRunner<Null> {
negatable: false,
help:
'Captures a bug report file to submit to the Flutter team '
'(contains local paths, device identifiers, and log snippets).');
'(contains local paths, device\nidentifiers, and log snippets).');
String packagesHelp;
if (fs.isFileSync(kPackagesFileName))