Skip to content
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

fix: Device logs are not properly shown with debug command #3628

Merged
merged 1 commit into from
May 29, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented May 28, 2018

The console.log from application should be shown in the terminal when tns debug <platform> command is executed.
When tns debug android --start is used, the console.log messages are not visible as noone has started reading them. Add logic to read and filter them based on the PID of the application.
When tns debug ios [--start] is used with older runtime (4.0.1 for example) with iOS Simulator, the device logs are not shown as the filtering is based on the projectName, but noone has set this projectName to the filter. So we filter everything. Fix this by setting the projectName to the filter instance.

Fix the tns debug ios --justlaunch and tns debug ios --start --justlaunch which are always printing console.logs, while in fact they shouldn't.

PR Checklist

What is the current behavior?

Missing console.logs when tns debug android --start or tns debug ios is used.

What is the new behavior?

Console.logs are visible.

Fixes:

@rosen-vladimirov rosen-vladimirov added this to the 4.1.0 milestone May 28, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this May 28, 2018
@dtopuzov
Copy link
Contributor

run ci

The console.log from application should be shown in the terminal when `tns debug <platform>` command is executed.
When `tns debug android --start` is used, the console.log messages are not visible as noone has started reading them. Add logic to read and filter them based on the PID of the application.
When `tns debug ios [--start]` is used with older runtime (4.0.1 for example) with iOS Simulator, the device logs are not shown as the filtering is based on the projectName, but noone has set this projectName to the filter. So we filter everything. Fix this by setting the projectName to the filter instance.
Fix the `tns debug ios --justlaunch` and `tns debug ios --start --justlaunch` which are always printing console.logs, while in fact they shouldn't.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-logging branch from bccdc5f to 4e4367a Compare May 29, 2018 07:02
@rosen-vladimirov rosen-vladimirov merged commit 9c9cdcf into release May 29, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-logging branch May 29, 2018 08:46
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.

3 participants