Skip to content

Improve logging #659

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 13 commits into from
Jul 17, 2025
Merged

Improve logging #659

merged 13 commits into from
Jul 17, 2025

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Jul 10, 2025

  1. Propagate logger instance from PowerSyncDatabase to the StreamingSyncImplementation and Remote implementations in the various SDKs. This means we now actually use the logger passed in the constructor, at the cost of not having a more specific prefix like [PowerSyncStream].
  2. Include database name in the default logger, i.e. PowerSyncDatabase[test.db]. This helps debugging issues when multiple databases are used.
  3. Add some logging for write checkpoints / upload complete.
  4. Cleanup for some other log messages.

Copy link

changeset-bot bot commented Jul 10, 2025

🦋 Changeset detected

Latest commit: fadce87

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

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

@rkistner rkistner marked this pull request as ready for review July 17, 2025 06:55
@rkistner rkistner requested a review from stevensJourney July 17, 2025 06:55
Copy link
Collaborator

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@rkistner rkistner merged commit 810c6ad into main Jul 17, 2025
9 checks passed
@rkistner rkistner deleted the improve-logging branch July 17, 2025 08:51
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