Skip to content

fix: incorrect filtering of Android logs by tag #4331

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
Feb 1, 2019

Conversation

rosen-vladimirov
Copy link
Contributor

CLI filters Android logs by PID and by tags. However, in case the PID matches, but we do not find the tag, we may still output the line as we check if it contains the tag anywhere in the content.
So, when searching for JS tag, we may output the line:

02-01 13:29:23.990  8141  8141 I art     :   at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object[]) (Runtime.java:987)

Remove this incorrect behavior and rely on the tag filtering.

PR Checklist

What is the current behavior?

Running tns run android with Android x86 emulator, API Level 24 or 25, shows strange messages in the terminal.

What is the new behavior?

Running tns run android with Android x86 emulator, API Level 24 or 25, shows correct messages in the terminal.

Fixes issue: #4300

CLI filters Android logs by PID and by tags. However, in case the PID matches, but we do not find the tag, we may still output the line as we check if it contains the tag anywhere in the content.
So, when searching for `JS` tag, we may output the line:
```
02-01 13:29:23.990  8141  8141 I art     :   at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object[]) (Runtime.java:987)
```

Remove this incorrect behavior and rely on the tag filtering.
@rosen-vladimirov
Copy link
Contributor Author

run ci

@rosen-vladimirov rosen-vladimirov merged commit 1a08b52 into master Feb 1, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-android-logs branch February 1, 2019 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants