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: use pipe to spawn http server process to enable logs pipe to files #4293

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

tianjianchn
Copy link
Contributor

Previously we use inherit in stdio param to spawn the http server process(or the child process), which will swallow the logs in child process and not be written to the code-server-stdout.log. Using pipe will fix this problem.

Fixes #

Previously we use `inherit` in stdio param to spawn the http server process(or the child process), which will swallow the logs in child process and not be written to the `code-server-stdout.log`. Using `pipe` will fix this problem.
@tianjianchn tianjianchn requested a review from a team as a code owner October 2, 2021 00:16
@jsjoeio jsjoeio added the bug Something isn't working label Oct 4, 2021
@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 4, 2021

@code-asher do you mind reviewing this? I think last time we changed this code, it was when we found that bug thanks to the help from the ts-node maintainer.

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Ahhhh I was wondering why we stopped getting output in the log file. Thank you for this fix!!

@code-asher code-asher merged commit 59f667e into coder:main Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants