Commit 68ba5bfd authored by Chinmay Garde's avatar Chinmay Garde

Suppress verbose output from ios-deploy when not in verbose mode. (#4423)

parent 0783f9d6
...@@ -29,6 +29,7 @@ Future<Process> runCommand(List<String> cmd, { String workingDirectory }) async ...@@ -29,6 +29,7 @@ Future<Process> runCommand(List<String> cmd, { String workingDirectory }) async
Future<int> runCommandAndStreamOutput(List<String> cmd, { Future<int> runCommandAndStreamOutput(List<String> cmd, {
String workingDirectory, String workingDirectory,
String prefix: '', String prefix: '',
bool trace: false,
RegExp filter, RegExp filter,
StringConverter mapFunction StringConverter mapFunction
}) async { }) async {
...@@ -40,8 +41,13 @@ Future<int> runCommandAndStreamOutput(List<String> cmd, { ...@@ -40,8 +41,13 @@ Future<int> runCommandAndStreamOutput(List<String> cmd, {
.listen((String line) { .listen((String line) {
if (mapFunction != null) if (mapFunction != null)
line = mapFunction(line); line = mapFunction(line);
if (line != null) if (line != null) {
printStatus('$prefix$line'); String message = '$prefix$line';
if (trace)
printTrace(message);
else
printStatus(message);
}
}); });
process.stderr process.stderr
.transform(UTF8.decoder) .transform(UTF8.decoder)
......
...@@ -203,7 +203,7 @@ class IOSDevice extends Device { ...@@ -203,7 +203,7 @@ class IOSDevice extends Device {
'--bundle', '--bundle',
bundle.path, bundle.path,
'--justlaunch', '--justlaunch',
]); ], trace: true);
if (installationResult != 0) { if (installationResult != 0) {
printError('Could not install ${bundle.path} on $id.'); printError('Could not install ${bundle.path} on $id.');
......
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