Skip to content

Commit

Permalink
watch error event in logseneExitHandler, issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
megastef committed Jul 28, 2016
1 parent 176cf50 commit e031b23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ var Logsene = function (options) {
this.logger.once('log', function () {
process.exit(code)
})
this.logger.once('error', function () {
process.exit(code)
})
this.logger.send()
}.bind(this)
if (options.flushOnExit) {
Expand Down

0 comments on commit e031b23

Please sign in to comment.