Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thegoleffect committed Sep 3, 2011
1 parent 9d3e9ef commit 4b886e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ via npm
Airbrake({ api_key: "" }),
);

That's it! It should report any exceptions/errors to Airbrake. You can pass in an additional option so that the errors are also logged to stdout:

var Airbrake = require('connect-airbrake');
var server = connect.createServer(
Airbrake({ api_key: "", verbose: true}),
);

## TODO:

* Unit tests
2 changes: 1 addition & 1 deletion lib/connect-airbrake.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function(options){
}

Logger = function(verbose){
if (verbose != null){
if (verbose == true){
return function(msg){
console.log(msg);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "connect-airbrake",
"description": "airbrake app middleware for Connect",
"version": "0.1.0",
"version": "0.2.0",
"author": "Van Nguyen <thegoleffect@gmail.com>",
"dependencies": { "airbrake": ">= 0.2.1" },
"main": "./index.js",
Expand Down

0 comments on commit 4b886e4

Please sign in to comment.