-
Notifications
You must be signed in to change notification settings - Fork 44
feat: Logging cleanup in packages (web, node, attachments, react, vue) #565
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
Conversation
… and sync worker.
…ve controlled logging in packages like Attachments, React, and Vue.
🦋 Changeset detectedLatest commit: 0857d51 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
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 |
packages/web/src/worker/sync/SharedSyncImplementation.worker.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably best to let Steven take another look too, but these changes look good to me.
This is the first of 3 planned PRs for logging cleanup.
This PR sweeps some of our logging across multiple packages which either didn't respect log levels or were using
console.xxx()
to log information. The most noteworthy changes were inBroadcastLogger.ts
.For the
attachments
,vue
, andreact
packages the easiest way to access the logger instance was to expose it on the PowerSync database instance.