Skip to content

Commit

Permalink
fix memory leak, issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
megastef committed Jul 28, 2016
1 parent 7b92a91 commit 176cf50
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ var Logsene = function (options) {
this.logsene_debug=options.logsene_debug
this.handleExceptions = options.handleExceptions
this.exitOnError = options.exitOnError
this.errorOutput = []
this.writeOutput = []
this.flatOptions = options.flatOptions || {safe: true, delimiter: '_'}
this.json = options.json || false
this.colorize = options.colorize || false
Expand Down Expand Up @@ -121,11 +119,6 @@ Logsene.prototype.log = function (level, msg, meta, callback) {
console.log(output)
}
this.logger.log(level, msg, flat(metaData, this.flatOptions), callback)
if (level === 'error' || level === 'debug') {
this.errorOutput.push(output)
} else {
this.writeOutput.push(output)
}
}

Logsene.prototype.clearLogs = function () {
Expand Down

0 comments on commit 176cf50

Please sign in to comment.