Skip to content

Commit

Permalink
Merge pull request #50 from YoniPrv/master
Browse files Browse the repository at this point in the history
Close Graylog2 connection on close. Fixes #24
  • Loading branch information
odino authored Sep 19, 2017
2 parents c504722 + f6c950e commit bc194d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/winston-graylog2.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ Graylog2.prototype.log = function(level, msg, meta, callback) {
callback(null, true);
};

Graylog2.prototype.close = function() {
this.graylog2.close();
};

module.exports = Graylog2;

0 comments on commit bc194d9

Please sign in to comment.