Skip to content

Commit

Permalink
Merge branch 'hotfix/v0.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmarban committed Mar 30, 2016
2 parents 7a43ec1 + db39600 commit c3573f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/winston-telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Telegram = exports.Telegram = function (options) {
if (!options.token || !options.chatid){
throw new Error('winston-telegram requires \'token\' and \'chatid\' property');
}
this.token = options.token
this.token = options.token;
this.chatid = options.chatid;
this.level = options.level || 'info';
this.unique = options.unique || false;
Expand All @@ -34,7 +34,7 @@ util.inherits(Telegram, winston.Transport);
* Define a getter so that `winston.transports.Telegram`
* is available and thus backwards compatible.
*/
winston.transports.Telegram = Telegram;
winston.transports.Telegram = Telegram;

/**
* Core logging method exposed to Winston.
Expand All @@ -59,7 +59,7 @@ Telegram.prototype.log = function (level, msg, meta, callback) {
}
}, function(error, response, body){
if (error) {
self.emit('error', err);
self.emit('error', error);
}
if (response && response.statusCode != 200) {
self.emit('error', response.statusCode);
Expand Down

0 comments on commit c3573f6

Please sign in to comment.