Permalink
Browse files

tweaks

  • Loading branch information...
1 parent 1394e08 commit 9d3e9ef8c4082f585c2cebf8cceb90af261efc75 @thegoleffect committed Sep 3, 2011
Showing with 9 additions and 4 deletions.
  1. +5 −1 README.md
  2. +4 −3 lib/connect-airbrake.js
View
@@ -14,4 +14,8 @@ via npm
var Airbrake = require('connect-airbrake');
var server = connect.createServer(
Airbrake({ api_key: "" }),
- );
+ );
+
+## TODO:
+
+* Unit tests
View
@@ -31,8 +31,9 @@ var airbrake = require("airbrake");
*/
module.exports = function(options){
var airbrake_client, logger;
-
- options = options || {};
+ if (options == null) {
+ options = {};
+ }
log = Logger(options.verbose);
if (options.api_key != null){
@@ -62,7 +63,7 @@ module.exports = function(options){
}
Logger = function(verbose){
- if (options.verbose != null){
+ if (verbose != null){
return function(msg){
console.log(msg);
}

0 comments on commit 9d3e9ef

Please sign in to comment.