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

clients(lr): expose listenForStatus #14024

Merged
merged 9 commits into from
Jun 27, 2022
Merged

clients(lr): expose listenForStatus #14024

merged 9 commits into from
Jun 27, 2022

Conversation

paulirish
Copy link
Member

@exterkamp'll need this for shuttling log messages across components

@paulirish paulirish requested a review from a team as a code owner May 18, 2022 22:41
@paulirish paulirish requested review from brendankenny and removed request for a team May 18, 2022 22:41
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

LGTM2

@@ -68,6 +68,7 @@ function setUpWorkerConnection(port) {
/** @param {(status: [string, string, string]) => void} listenCallback */
function listenForStatus(listenCallback) {
log.events.addListener('status', listenCallback);
log.events.addListener('warning', listenCallback);
Copy link
Member

Choose a reason for hiding this comment

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

i assume warnings are rare and this doesn't make things too chatty?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah they're very rare. status is definitely the chatty one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants