Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Severity #21

Merged
merged 11 commits into from
Apr 16, 2014
Merged

Severity #21

merged 11 commits into from
Apr 16, 2014

Conversation

jessicard
Copy link
Contributor

@@ -21,6 +23,13 @@ module.exports = class Notification
event.appVersion = Configuration.appVersion if Configuration.appVersion
event.releaseStage = Configuration.releaseStage if Configuration.releaseStage

event.payloadVersion = Configuration.payloadVersion if Configuration.payloadVersion

if options.severity? and SUPPORTED_SEVERITIES.include?(options.severity)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does .include? work — I though that was a ruby thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it doesn't, and I had the right thing there at first too. Was switching between this and Ruby, must have gotten twisted up :)

@@ -125,6 +125,7 @@ module.exports = Bugsnag = (function() {
}
dom = domain.create();
dom._bugsnagOptions = options;
options["severity"] = "error";
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we also need to do this in requestHandler

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@jessicard jessicard changed the title [WIP] Severity Severity Apr 16, 2014
@ConradIrwin
Copy link
Contributor

Do we want severity=error on Bugsnag.intercept?

@ConradIrwin
Copy link
Contributor

We definitely do want it in @restifyHandler

@ConradIrwin
Copy link
Contributor

Other than that, 🍬

jessicard added a commit that referenced this pull request Apr 16, 2014
@jessicard jessicard merged commit e3c61d0 into master Apr 16, 2014
@jessicard jessicard deleted the severity branch April 16, 2014 20:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants