connect-airbrake
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -66,3 +66,3 @@ /*! | ||
Logger = function(verbose){ | ||
if (verbose != null){ | ||
if (verbose == true){ | ||
return function(msg){ | ||
@@ -69,0 +69,0 @@ console.log(msg); |
{ | ||
"name": "connect-airbrake", | ||
"description": "airbrake app middleware for Connect", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"author": "Van Nguyen <thegoleffect@gmail.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { "airbrake": ">= 0.2.1" }, |
@@ -17,2 +17,13 @@ | ||
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 |
3503
28