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

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
listepo committed Apr 25, 2015
1 parent efca96a commit 78eafb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var raven = require('raven');

module.exports = function(sails) {

return {
Expand Down Expand Up @@ -37,16 +35,16 @@ module.exports = function(sails) {
return cb();
}

var raven = require('raven');
var client = new raven.Client(
sails.config[this.configKey].dsn,
{
level: sails.config[this.configKey].level
}
);
sails.config[this.configKey].dsn, {
level: sails.config[this.configKey].level
}
);

sails.sentry = client;
sails.on('router:request:500', function(err) {
client.captureError(err);
client.captureError(err);
});
// We're done initializing.
return cb();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sails-hook-sentry",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Sails hook for Sentry(raven-node)",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit 78eafb2

Please sign in to comment.