Unverified Commit bb7e3f60 authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

[flutter_tools] Report iOS mDNS lookup failures to analytics (#41384)

parent 0980fa2d
......@@ -373,13 +373,15 @@ class IOSDevice extends Device {
debuggingOptions.observatoryPort,
);
if (localUri != null) {
UsageEvent('ios-mdns', 'success').send();
return LaunchResult.succeeded(observatoryUri: localUri);
}
} catch (error) {
printError('Failed to establish a debug connection with $id: $error');
}
// Fallback to manual protocol discovery
// Fallback to manual protocol discovery.
UsageEvent('ios-mdns', 'failure').send();
printTrace('mDNS lookup failed, attempting fallback to reading device log.');
try {
printTrace('Waiting for observatory port.');
......
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