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

Commit 78eafb2

Browse files
committed
Minor updates
1 parent efca96a commit 78eafb2

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

index.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var raven = require('raven');
2-
31
module.exports = function(sails) {
42

53
return {
@@ -37,16 +35,16 @@ module.exports = function(sails) {
3735
return cb();
3836
}
3937

38+
var raven = require('raven');
4039
var client = new raven.Client(
41-
sails.config[this.configKey].dsn,
42-
{
43-
level: sails.config[this.configKey].level
44-
}
45-
);
40+
sails.config[this.configKey].dsn, {
41+
level: sails.config[this.configKey].level
42+
}
43+
);
4644

4745
sails.sentry = client;
4846
sails.on('router:request:500', function(err) {
49-
client.captureError(err);
47+
client.captureError(err);
5048
});
5149
// We're done initializing.
5250
return cb();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sails-hook-sentry",
3-
"version": "1.0.0-beta.1",
3+
"version": "1.0.0-beta.2",
44
"description": "Sails hook for Sentry(raven-node)",
55
"main": "index.js",
66
"keywords": [

0 commit comments

Comments
 (0)