Skip to content

fix: start log process on tns debug ios --justlaunch command #4078

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 2, 2018

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Oct 29, 2018

Currently log process is not started when --justlaunch option is provided. This leads to error on tns debug ios --justlaunch command. Actually we need to start log process in order to get debugger port. On the other side we should not print any logs on the console when --justlaunch option is provided. So this PR starts log process when --justlaunch option is specified and doesn't print any logs on the console.

PR Checklist

What is the current behavior?

tns debug ios --justlaunch throws an error

What is the new behavior?

tns debug ios --justlaunch does not throw an error

Rel to: #4076

@Fatme Fatme added this to the 5.0.1 milestone Oct 29, 2018
@Fatme Fatme self-assigned this Oct 29, 2018
@Fatme Fatme added the bug label Oct 29, 2018
@Fatme Fatme force-pushed the fatme/fix-debug-justlaunch branch 2 times, most recently from 029c87c to e4cfe38 Compare October 30, 2018 06:49
await this.$iOSDebuggerPortService.attachToDebuggerPortFoundEvent(this.device, debugData, debugOptions);
await this.startDeviceLogProcess(debugData, debugOptions);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be executed prior to await this.$iOSDebuggerPortService.attachToDebuggerPortFoundEven..., because we depend on the logs to get the port.

@Fatme Fatme force-pushed the fatme/fix-debug-justlaunch branch from e4cfe38 to 8f6f8e9 Compare November 1, 2018 07:56
@Fatme
Copy link
Contributor Author

Fatme commented Nov 1, 2018

run ci

@Fatme Fatme force-pushed the fatme/fix-debug-justlaunch branch from 8f6f8e9 to eadc305 Compare November 1, 2018 20:40
@Fatme
Copy link
Contributor Author

Fatme commented Nov 2, 2018

run ci

@Fatme Fatme merged commit 9daeb0c into release-5.0.1 Nov 2, 2018
@Fatme Fatme deleted the fatme/fix-debug-justlaunch branch November 2, 2018 08:43
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