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

Swallow Throwables thrown when configuring bugsnag appender #140

Merged
merged 4 commits into from
Apr 12, 2019

Conversation

fractalwrench
Copy link
Contributor

Goal

Not all users use Logback in their project, so BugsnagSpringConfiguration calling BugsnagAppender methods can throw a NoClassDefFoundError, as observed in #132. If the dependency is not on the classpath, we should ignore this error and continue initialising bugsnag as normal.

Tests

Ran the example app with logback excluded, and confirmed that this change allowed the application to startup.

…uded loggers

not all clients use Logback, so the dependency may throw an error relating to the class def not
being found. We should swallow this and continue initialising bugsnag as normal.
Copy link

@kinbiko kinbiko 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! 🚢

@fractalwrench fractalwrench merged commit a331f30 into master Apr 12, 2019
@fractalwrench fractalwrench deleted the catch-logback-classdef-error branch April 12, 2019 14:16
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