Skip to content

Commit

Permalink
Options should be optional
Browse files Browse the repository at this point in the history
Currently if you do not provide options you will get "cannot get property level of undefined"
  • Loading branch information
melbourne2991 authored Oct 15, 2017
1 parent ece0847 commit acf3fd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var util = require('util'),


var WinstonCloudWatch = function(options) {
options = options || {};
winston.Transport.call(this, options);
this.level = options.level || 'info';
this.name = options.name || 'CloudWatch';
Expand Down

0 comments on commit acf3fd1

Please sign in to comment.