Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
658e6c8a
Unverified
Commit
658e6c8a
authored
Sep 23, 2020
by
Jenn Magder
Committed by
GitHub
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Listen to Debug VM stream to get Stdout logs from VMService (#66310)
parent
8e8acaac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
devices.dart
packages/flutter_tools/lib/src/ios/devices.dart
+5
-0
ios_device_logger_test.dart
..._tools/test/general.shard/ios/ios_device_logger_test.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/ios/devices.dart
View file @
658e6c8a
...
...
@@ -10,6 +10,7 @@ import 'package:process/process.dart';
import
'package:vm_service/vm_service.dart'
as
vm_service
;
import
'../application_package.dart'
;
import
'../base/common.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../base/logger.dart'
;
...
...
@@ -678,6 +679,10 @@ class IOSDeviceLogReader extends DeviceLogReader {
return
;
}
try
{
// The VM service will not publish logging events unless the debug stream is being listened to.
// Listen to this stream as a side effect.
unawaited
(
connectedVmService
.
streamListen
(
'Debug'
));
await
Future
.
wait
(<
Future
<
void
>>[
connectedVmService
.
streamListen
(
vm_service
.
EventStreams
.
kStdout
),
connectedVmService
.
streamListen
(
vm_service
.
EventStreams
.
kStderr
),
...
...
packages/flutter_tools/test/general.shard/ios/ios_device_logger_test.dart
View file @
658e6c8a
...
...
@@ -189,6 +189,7 @@ Runner(libsystem_asl.dylib)[297] <Notice>: libMobileGestalt
equals
(
' This is a message '
),
equals
(
' And this is an error '
),
]));
verify
(
vmService
.
streamListen
(
'Debug'
));
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment