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

[dev-launcher][Android] Send uncaught exceptions to bundler server #15938

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

lukmccall
Copy link
Contributor

@lukmccall lukmccall commented Jan 17, 2022

Why

Part of ENG-2401.

How

Send uncaught exceptions to the bundler server if possible. Our dev server has its endpoint where we can send logs. So I've just used it.

Test Plan

  • throws an exception in the start method of the app and check if a log occurs in the console.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jan 17, 2022
Copy link
Contributor

@esamelson esamelson left a comment

Choose a reason for hiding this comment

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

looks good to me other than the expo-manifests thing, which i think would be fine to fix in a follow-up PR.

}

private fun getLogsUrl(): Uri {
val logsUrlFromManifest = controller.manifest?.getRawJson()?.optString("logUrl")
Copy link
Contributor

Choose a reason for hiding this comment

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

this should really go through one of the getters in expo-manifest instead of using getRawJson (might need to add getLogUrl there if it doesn't already exist) because this will still only work for classic update manifests.

@lukmccall lukmccall force-pushed the @lukmccall/dev-launcher/send-exception-to-bundler branch from c9b640d to 7660d6d Compare January 28, 2022 17:27
@expo-bot
Copy link
Collaborator

expo-bot commented Feb 4, 2022

Hi there! 👋 I'm a bot whose goal is to ensure your contributions meet our guidelines.

I've found some issues in your pull request that should be addressed (click on them for more details) 👇

⚠️ Suggestion: Missing changelog entries


Your changes should be noted in the changelog. Read Updating Changelogs guide and consider (it's optional) adding an appropriate entry to the following changelogs:


Generated by ExpoBot 🤖 against 26e19b5

@lukmccall lukmccall merged commit 25d717b into main Feb 4, 2022
@lukmccall lukmccall deleted the @lukmccall/dev-launcher/send-exception-to-bundler branch February 4, 2022 17:40
byCedric pushed a commit that referenced this pull request Feb 13, 2022
…15938)

# Why

Part of ENG-2401.

# How

Send uncaught exceptions to the bundler server if possible. Our dev server has its endpoint where we can send logs. So I've just used it. 

# Test Plan

- throws an exception in the start method of the app and check if a log occurs in the console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: suggestions ExpoBot has some suggestions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants