Permalink
Browse files

[fix] Check to see if `options.inputs` is defined before checking the…

… inputName
  • Loading branch information...
1 parent 418058e commit b60781ebbe443436b549a8b54434da83356755aa @indexzero indexzero committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/winston/transports/loggly.js
@@ -47,7 +47,7 @@ var Loggly = exports.Loggly = function (options) {
this.inputToken = options.inputToken;
this.ready = true;
}
- else if (options.inputName && options.inputs[inputName]) {
+ else if (options.inputName && options.inputs && options.inputs[options.inputName]) {
this.inputToken = options.inputs[inputName];
this.ready = true;
}

0 comments on commit b60781e

Please sign in to comment.