Skip to content

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

Merged
merged 10 commits into from
Apr 24, 2025

Conversation

Chriztiaan
Copy link
Contributor

@Chriztiaan Chriztiaan commented Apr 8, 2025

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 in BroadcastLogger.ts.

For the attachments, vue, and react packages the easiest way to access the logger instance was to expose it on the PowerSync database instance.

Copy link

changeset-bot bot commented Apr 8, 2025

🦋 Changeset detected

Latest commit: 0857d51

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

This PR includes changesets to release 10 packages
Name Type
@powersync/node Patch
@powersync/attachments Patch
@powersync/react Patch
@powersync/vue Patch
@powersync/common Minor
@powersync/web Patch
@powersync/react-native Patch
@powersync/tanstack-react-query Patch
@powersync/diagnostics-app Patch
@powersync/op-sqlite 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

@Chriztiaan Chriztiaan marked this pull request as ready for review April 17, 2025 06:58
@Chriztiaan Chriztiaan requested review from simolus3 and removed request for benitav April 17, 2025 09:07
@Chriztiaan Chriztiaan changed the title feat: Logging cleanup feat: Logging cleanup in packages (web, attachments, react, vue) Apr 23, 2025
@Chriztiaan Chriztiaan changed the title feat: Logging cleanup in packages (web, attachments, react, vue) feat: Logging cleanup in packages (web, node, attachments, react, vue) Apr 23, 2025
Copy link
Contributor

@simolus3 simolus3 left a 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.

@Chriztiaan Chriztiaan merged commit 6807df6 into main Apr 24, 2025
6 checks passed
@Chriztiaan Chriztiaan deleted the feat/logging-cleanup branch April 24, 2025 08:54
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.

3 participants