mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[flutter_tools] Report iOS mDNS lookup failures to analytics (#41384)
This commit is contained in:
parent
0980fa2ddd
commit
bb7e3f6045
@ -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.');
|
||||
|
Loading…
Reference in New Issue
Block a user