Skip to content

Commit

Permalink
[fix] Check to see if options.inputs is defined before checking the…
Browse files Browse the repository at this point in the history
… inputName
  • Loading branch information
indexzero committed Nov 30, 2011
1 parent 418058e commit b60781e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/transports/loggly.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit b60781e

Please sign in to comment.