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

[Feature] Better Error Logging #18

Merged
merged 1 commit into from
Oct 31, 2023
Merged

[Feature] Better Error Logging #18

merged 1 commit into from
Oct 31, 2023

Conversation

stevensJourney
Copy link
Collaborator

This PR adds some logging functionality which should assist with debugging.

  • Added display for exceptions that occur during the PowerSync instance streaming operations.
  • Added note to SDK README for configuring debug log levels.
  • Added checks for HTTP streaming polyfills.

@stevensJourney stevensJourney marked this pull request as ready for review October 31, 2023 07:58
@stevensJourney stevensJourney merged commit e9e8e76 into main Oct 31, 2023
1 check passed
@stevensJourney stevensJourney deleted the better-logs branch October 31, 2023 08:05
Platform.OS == 'android'
? setTimeout(() => {
this.logger.warn(
`HTTP Streaming POST is taking longer than 30 seconds to resolve. If using a debug build, please ensure Flipper Network plugin is disabled.`
Copy link
Contributor

Choose a reason for hiding this comment

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

The message should also use the STREAMING_POST_TIMEOUT_MS constant.

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