Skip to content

[test] Capacitor Investigation Additions - #691

Closed
stevensJourney wants to merge 9 commits into
mainfrom
capacitor-logging
Closed

[test] Capacitor Investigation Additions#691
stevensJourney wants to merge 9 commits into
mainfrom
capacitor-logging

Conversation

@stevensJourney

Copy link
Copy Markdown
Collaborator

Overview

The purpose of this PR is mainly to attempt to reproduce and debug the issue from https://discord.com/channels/1138230179878154300/1401770441911177276

Additional logging has been added to:

  • Log any uncaught exceptions in the DB worker to a logger in the main JS context.
  • Log VFS debug logs - this is in the hopes that this might expose any additional details if the issue is reproducible. I'm not sure yet if we'd want to expose this as part of the API.

Our capacitor demo is rather simple. We don't have any external logging or error reporting services. I've configured a custom Logger to store all logs and make them presentable in the application. This is somewhat of a diagnostics view in the application. The purpose of this is mainly to make debugging possible, but it could be a nice general addition (perhaps without persisting the logs).

I've added a local only table and widgets to modify the data to the Capacitor demo. This is mainly since the Capacitor demo does not have a full fledged upload connector. For testing it would be nice to perform SQLite operations. Again, this might be a nice general addition to the demo.

Generally this also improves the layout and responsiveness of the capacitor demo.

Screenshots for those who are interested:

image image

@changeset-bot

changeset-bot Bot commented Aug 8, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6aa288f

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

This PR includes changesets to release 2 packages
Name Type
@powersync/web 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

@stevensJourney

Copy link
Copy Markdown
Collaborator Author

Closing this since the Capacitor SDK has been released

@stevensJourney
stevensJourney deleted the capacitor-logging branch December 4, 2025 10:47
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.

1 participant