Commit 2f737cf9 authored by Devon Carew's avatar Devon Carew Committed by GitHub

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

parent 2f590ecc
...@@ -375,7 +375,7 @@ class HotRunner extends ResidentRunner { ...@@ -375,7 +375,7 @@ class HotRunner extends ResidentRunner {
await _restartFromSources(); await _restartFromSources();
timer.stop(); timer.stop();
status.cancel(); status.cancel();
printStatus('Restarted app in ${getElapsedAsSeconds(timer.elapsed)}.'); printStatus('Restarted app in ${getElapsedAsMilliseconds(timer.elapsed)}.');
return OperationResult.ok; return OperationResult.ok;
} catch (error) { } catch (error) {
status.cancel(); status.cancel();
...@@ -412,7 +412,7 @@ class HotRunner extends ResidentRunner { ...@@ -412,7 +412,7 @@ class HotRunner extends ResidentRunner {
} }
if (!_isPaused()) { if (!_isPaused()) {
printStatus('Refreshing active FlutterViews before reloading.'); printTrace('Refreshing active FlutterViews before reloading.');
await refreshViews(); await refreshViews();
} }
...@@ -528,8 +528,8 @@ class HotRunner extends ResidentRunner { ...@@ -528,8 +528,8 @@ class HotRunner extends ResidentRunner {
await view.uiIsolate.flutterReassemble(); await view.uiIsolate.flutterReassemble();
} on TimeoutException { } on TimeoutException {
reassembleTimedOut = true; reassembleTimedOut = true;
printTrace("Reassembling ${view.uiIsolate.name} took too long. "); printTrace("Reassembling ${view.uiIsolate.name} took too long.");
printStatus("Hot reloading ${view.uiIsolate.name} took too long. Hot reload may have failed."); printStatus("Hot reloading ${view.uiIsolate.name} took too long; the reload may have failed.");
continue; continue;
} catch (error) { } catch (error) {
reassembleAndScheduleErrors = true; reassembleAndScheduleErrors = true;
......
...@@ -37,14 +37,13 @@ class FlutterCommandRunner extends CommandRunner<Null> { ...@@ -37,14 +37,13 @@ class FlutterCommandRunner extends CommandRunner<Null> {
'flutter', 'flutter',
'Manage your Flutter app development.\n' 'Manage your Flutter app development.\n'
'\n' '\n'
'Common actions:\n' 'Common commands:\n'
'\n' '\n'
' flutter create <output directory>\n' ' flutter create <output directory>\n'
' Create a new Flutter project in the specified directory.\n' ' Create a new Flutter project in the specified directory.\n'
'\n' '\n'
' flutter run [options]\n' ' flutter run [options]\n'
' Run your Flutter application on an attached device\n' ' Run your Flutter application on an attached device or in an emulator.',
' or in an emulator.',
) { ) {
argParser.addFlag('verbose', argParser.addFlag('verbose',
abbr: 'v', abbr: 'v',
...@@ -72,7 +71,7 @@ class FlutterCommandRunner extends CommandRunner<Null> { ...@@ -72,7 +71,7 @@ class FlutterCommandRunner extends CommandRunner<Null> {
negatable: false, negatable: false,
help: help:
'Captures a bug report file to submit to the Flutter team ' '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; String packagesHelp;
if (fs.isFileSync(kPackagesFileName)) if (fs.isFileSync(kPackagesFileName))
......
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