Add logs to debug VM Service Publication (flutter/engine#43616)
Adding logs to help debug why VM Service is being published when it shouldn't (https://github.com/flutter/flutter/issues/129987 and https://github.com/flutter/flutter/issues/129836). [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
committed by
GitHub
parent
64c139e98a
commit
1a078f8091
@@ -80,6 +80,8 @@
|
||||
}
|
||||
|
||||
- (void)publishServiceProtocolPort:(NSURL*)url {
|
||||
// TODO(vashworth): Remove once done debugging https://github.com/flutter/flutter/issues/129836
|
||||
FML_LOG(INFO) << "Publish Service Protocol Port";
|
||||
DNSServiceFlags flags = kDNSServiceFlagsDefault;
|
||||
#if TARGET_IPHONE_SIMULATOR
|
||||
// Simulator needs to use local loopback explicitly to work.
|
||||
|
||||
@@ -871,6 +871,8 @@ static void SetEntryPoint(flutter::Settings* settings, NSString* entrypoint, NSS
|
||||
FML_LOG(ERROR) << "Could not start a shell FlutterEngine with entrypoint: "
|
||||
<< entrypoint.UTF8String;
|
||||
} else {
|
||||
// TODO(vashworth): Remove once done debugging https://github.com/flutter/flutter/issues/129836
|
||||
FML_LOG(INFO) << "Enabled VM Service Publication: " << settings.enable_vm_service_publication;
|
||||
[self setupShell:std::move(shell)
|
||||
withVMServicePublication:settings.enable_vm_service_publication];
|
||||
if ([FlutterEngine isProfilerEnabled]) {
|
||||
|
||||
Reference in New Issue
Block a user