Skip to content

Manually filter old android device log messages instead of relying on the '-T' option #6630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2016
Merged

Manually filter old android device log messages instead of relying on the '-T' option #6630

merged 1 commit into from
Nov 1, 2016

Conversation

johnmccutchan
Copy link
Contributor

Fixes Galaxy Note 5 (#6280)

@johnmccutchan
Copy link
Contributor Author

@jason-simmons

DateTime time = _adbTimestampToDateTime(timestamp);
if (time.isBefore(_timeOrigin)) {
// Ignore log messages before the origin.
printTrace('skipped old log line: $line');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need to be printed? Users can see them at any time by running logcat

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just being consistent with the existing behaviour: log messages that are ignored are still printed via printTrace. See the bottom of this function.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this yesterday. May have been a mistake. Feel free to remove that.

@@ -249,7 +249,13 @@ class HotRunner extends ResidentRunner {
}

_observatoryPort = result.observatoryPort;
await connectToServiceProtocol(_observatoryPort);
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to a separate PR?

Copy link
Contributor Author

@johnmccutchan johnmccutchan Nov 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This belongs in this PR because it fixes the error message when we fall over detecting the service protocol port.

@jason-simmons
Copy link
Member

LGTM

@johnmccutchan johnmccutchan merged commit 751539c into flutter:master Nov 1, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants