Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes

  • Loading branch information...
commit 4b886e4703cf16b46bd13c3ba4a7ed65bd64c2a1 1 parent 9d3e9ef
@thegoleffect authored
Showing with 9 additions and 2 deletions.
  1. +7 −0 README.md
  2. +1 −1  lib/connect-airbrake.js
  3. +1 −1  package.json
View
7 README.md
@@ -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
View
2  lib/connect-airbrake.js
@@ -63,7 +63,7 @@ module.exports = function(options){
}
Logger = function(verbose){
- if (verbose != null){
+ if (verbose == true){
return function(msg){
console.log(msg);
}
View
2  package.json
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.