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
ec7c49e4
Commit
ec7c49e4
authored
Nov 22, 2016
by
Todd Volkert
Committed by
GitHub
Nov 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce log filtering whitelist for iOS simulator (#6973)
#6972
parent
5274ffa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
15 deletions
+24
-15
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+24
-15
No files found.
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
ec7c49e4
...
...
@@ -683,19 +683,21 @@ class _IOSSimulatorLogReader extends DeviceLogReader {
static
final
RegExp
_flutterRunnerRegex
=
new
RegExp
(
r' FlutterRunner\[\d+\] '
);
/// List of log categories to always show in the logs, even if this is an
/// app-secific [DeviceLogReader]. Add to this list to make the log output
/// more verbose.
static
final
List
<
String
>
_whitelistedLogCategories
=
<
String
>[
'CoreSimulatorBridge'
,
];
String
_filterDeviceLine
(
String
string
)
{
Match
match
=
_mapRegex
.
matchAsPrefix
(
string
);
if
(
match
!=
null
)
{
// Filter out some messages that clearly aren't related to Flutter.
if
(
string
.
contains
(
': could not find icon for representation -> com.apple.'
))
return
null
;
String
category
=
match
.
group
(
1
);
String
content
=
match
.
group
(
2
);
if
(
category
==
'Game Center'
||
category
==
'itunesstored'
||
category
==
'nanoregistrylaunchd'
||
category
==
'mstreamd'
||
category
==
'syncdefaultsd'
||
category
==
'companionappd'
||
category
==
'searchd'
)
// Filter out some messages that clearly aren't related to Flutter.
if
(
string
.
contains
(
': could not find icon for representation -> com.apple.'
))
return
null
;
if
(
category
==
'CoreSimulatorBridge'
...
...
@@ -710,18 +712,25 @@ class _IOSSimulatorLogReader extends DeviceLogReader {
return
null
;
// assertiond: assertion failed: 15E65 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
if
(
category
==
'assertiond'
&&
content
.
startsWith
(
'assertion failed: '
)
&&
content
.
endsWith
(
']: 0x1'
))
if
(
category
==
'assertiond'
&&
content
.
startsWith
(
'assertion failed: '
)
&&
content
.
endsWith
(
']: 0x1'
))
return
null
;
if
(
_appName
!=
null
&&
category
==
_appName
)
{
if
(
_appName
==
null
||
_whitelistedLogCategories
.
contains
(
category
))
return
'
$category
:
$content
'
;
else
if
(
category
==
_appName
)
return
content
;
}
return
'
$category
:
$content
'
;
return
null
;
}
match
=
_lastMessageSingleRegex
.
matchAsPrefix
(
string
);
if
(
match
!=
null
)
if
(
_lastMessageSingleRegex
.
matchAsPrefix
(
string
)
!=
null
)
return
null
;
if
(
new
RegExp
(
r'assertion failed: .* libxpc.dylib .* 0x7d$'
).
matchAsPrefix
(
string
)
!=
null
)
return
null
;
return
string
;
}
...
...
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