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
4173e7e8
Commit
4173e7e8
authored
Feb 29, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2268 from abarth/clear_logs
Teach flutter logs to show only new logs
parents
1c2747ce
ad718a8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+4
-2
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
4173e7e8
...
...
@@ -297,7 +297,7 @@ class AndroidDevice extends Device {
// Return the most recent timestamp in the Android log. The format can be
// passed to logcat's -T option.
String
lastLogcatTimestamp
()
{
String
get
lastLogcatTimestamp
{
String
output
=
runCheckedSync
(
adbCommandForDevice
(<
String
>[
'-s'
,
id
,
'logcat'
,
'-v'
,
'time'
,
'-t'
,
'1'
]));
...
...
@@ -310,7 +310,7 @@ class AndroidDevice extends Device {
Future
<
String
>
stopTracing
(
AndroidApk
apk
,
{
String
outPath
})
async
{
// Workaround for logcat -c not always working:
// http://stackoverflow.com/questions/25645012/logcat-on-android-l-not-clearing-after-unplugging-and-reconnecting
String
beforeStop
=
lastLogcatTimestamp
()
;
String
beforeStop
=
lastLogcatTimestamp
;
runCheckedSync
(
adbCommandForDevice
(<
String
>[
'shell'
,
'am'
,
...
...
@@ -472,6 +472,8 @@ class _AdbLogReader extends DeviceLogReader {
'logcat'
,
'-v'
,
'tag'
,
// Only log the tag and the message
'-T'
,
device
.
lastLogcatTimestamp
,
'-s'
,
'flutter:V'
,
'ActivityManager:W'
,
...
...
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