Skip to content

Commit c9b40c6

Browse files
authored
Remove ASCII art from mDNS error log (flutter#21397)
1 parent de5f2b4 commit c9b40c6

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

shell/platform/darwin/ios/framework/Source/FlutterObservatoryPublisher.mm

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,16 @@ - (void)publishServiceProtocolPort:(NSString*)uri {
114114
if (err != 0) {
115115
FML_LOG(ERROR) << "Failed to register observatory port with mDNS with error " << err << ".";
116116
if (@available(iOS 14.0, *)) {
117-
FML_LOG(ERROR)
118-
<< "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n"
119-
<< "On iOS 14+, local network broadcast in apps need to be declared in "
120-
<< "the app's Info.plist. Debug and profile Flutter apps and modules host "
121-
<< "VM services on the local network to support debugging features such "
122-
<< "as hot reload and DevTools.\n\nTo make your Flutter app or module "
123-
<< "attachable and debuggable, add a '" << registrationType << "' value "
124-
<< "to the 'NSBonjourServices' key in your Info.plist for the Debug/"
125-
<< "Profile configurations.\n\n"
126-
<< "For more information, see "
127-
// Update link to a specific header as needed.
128-
<< "https://flutter.dev/docs/development/add-to-app/ios/project-setup"
129-
<< "\n▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒";
117+
FML_LOG(ERROR) << "On iOS 14+, local network broadcast in apps need to be declared in "
118+
<< "the app's Info.plist. Debug and profile Flutter apps and modules host "
119+
<< "VM services on the local network to support debugging features such "
120+
<< "as hot reload and DevTools. To make your Flutter app or module "
121+
<< "attachable and debuggable, add a '" << registrationType << "' value "
122+
<< "to the 'NSBonjourServices' key in your Info.plist for the Debug/"
123+
<< "Profile configurations. "
124+
<< "For more information, see "
125+
// Update link to a specific header as needed.
126+
<< "https://flutter.dev/docs/development/add-to-app/ios/project-setup";
130127
}
131128
} else {
132129
DNSServiceSetDispatchQueue(_dnsServiceRef, dispatch_get_main_queue());

0 commit comments

Comments
 (0)