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

Allow overriding context set by servlet callback #63

Merged
merged 2 commits into from
Oct 11, 2017

Conversation

kattrali
Copy link
Contributor

Given a report generated like so and captured from a servlet context:

Report report = bugsnag.buildReport(exception);
report.setContext("custom context");
bugsnag.notify(report);

The context in the final report should retain "custom context" and not be overridden by callbacks.

build.gradle Outdated
@@ -32,6 +32,8 @@ dependencies {

testCompile 'junit:junit:4.12'
testCompile 'org.slf4j:slf4j-jdk14:1.7.25'
testCompile 'javax.servlet:javax.servlet-api:3.1.0'
testCompile 'org.mockito:mockito-core:2.+'
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to lock this to a specific version.

@kattrali kattrali force-pushed the kattrali/fix-overriding-servlet-context branch from f00a3cb to e09f332 Compare October 11, 2017 09:36
@kattrali kattrali merged commit b78baec into master Oct 11, 2017
@kattrali kattrali deleted the kattrali/fix-overriding-servlet-context branch October 11, 2017 09:51
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.

2 participants