-
Notifications
You must be signed in to change notification settings - Fork 205
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
Fail gracefully when no API key is provided #114
Comments
Why not only initialize when it's a release build? Here's an example: I don't want to use a crash reporting library that silently fails to On Thu, Jul 28, 2016, 6:57 AM Shaleen Jain notifications@github.com wrote:
|
Yes, but then you'd have to guard every other bugsnag static method as well. That's a lot of boilerplate. It won't really be silent if it logs an error. Besides if you can't follow the setup instructions then you really shouldn't be using a crash reporting library. Their docs are pretty good. ;) |
A log is effectively silent. And it's not incompetence I'm worried about, I don't find it unreasonable to guard your calls or use an abstraction. I This library requires that piece of information for all functionality yet On Sun, Jul 31, 2016, 3:14 AM Shaleen Jain notifications@github.com wrote:
|
You can always write unit tests to catch regressions in your code. Libraries should be plug-able and not create hard dependencies, I should be able to turn its functionality on/off without having to go through my entire code base just for testing or performance analysis. For eg, Google Analytics doesn't crash your whole application if something isn't properly configured, even if that includes not adding the api key, instead it is flexible and lets the developer decide how to use the library including the ability to enable/disable it. At the very least all the other bugsnag methods shouldn't throw an exception if bugsnag is initialized only on release builds. |
Great. It sounds like you agree with me that the library should provide an On Sun, Jul 31, 2016, 4:35 AM Shaleen Jain notifications@github.com wrote:
|
Yeah. On Mon 1 Aug, 2016, 9:30 AM Jake Wharton, notifications@github.com wrote:
|
I looked at a few possibilities for this issue, and I think the best solutions are ones which can be done already:
|
fix: Update ProGuard keep rules for Breadcrumb class
Instead of throwing an NPE just log an error so that we can use the library in an open source project without an api key and not get tons of debug crashes from unknown sources.
The text was updated successfully, but these errors were encountered: