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

Send worker loglevel in init message #1045

Merged
merged 4 commits into from
Feb 23, 2024
Merged

Send worker loglevel in init message #1045

merged 4 commits into from
Feb 23, 2024

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Feb 23, 2024

Calling setLevel for the worker logger doesn't have any influence by default for the logger being loaded within a webworker. There's no shared scope and also webworkers don't have access to localstorage.
This PR simply sends the current loglevel with the init message to the worker. This allows the level to be set at least once on initialization.

Copy link

changeset-bot bot commented Feb 23, 2024

🦋 Changeset detected

Latest commit: a0e5843

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lukasIO lukasIO requested a review from davidzhao February 23, 2024 14:11
Copy link
Contributor

github-actions bot commented Feb 23, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 81.35 KB (+0.02% 🔺)
dist/livekit-client.umd.js 87.05 KB (+0.03% 🔺)

@lukasIO lukasIO merged commit c8faee3 into main Feb 23, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/worker-loglevel branch February 23, 2024 16:30
@github-actions github-actions bot mentioned this pull request Feb 23, 2024
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.

2 participants