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

Document pino.transport() async startup #1097

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Conversation

mcollina
Copy link
Member

Fixes #1095

Unfortunately the asynchronous startup is a limitation of the current implementation. It might be possible to overcome this in the future but we should document it for now.

This is due to ThreadStream waiting for a 'READY' message on the MessagePort - we would buffer all data in the meanwhile: https://github.com/pinojs/thread-stream/blob/e88be6efaccb9722b4b3ff9be6aa2cc8c1fedabd/index.js#L222-L225.

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@mcollina mcollina merged commit 3ec9946 into master Aug 24, 2021
@mcollina mcollina deleted the asynchronous-startup branch August 24, 2021 12:42
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
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.

next: worker-thread messages not log when pino used in both main-thread and worker-thread
2 participants