Skip to content

Commit

Permalink
catch uncaughtExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
minibikini committed Apr 9, 2014
1 parent 1fc298a commit 73833dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/AppSpine.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module.exports = class AppSpine extends EventEmitter2
@init() if @config.initializers?

process.title = @config.appName if @config.appName?
process.on 'uncaughtException', (err) =>
@logger.error 'uncaughtException', err

getEnvironment: ->
@config.env or process.env.NODE_ENV or 'development'
Expand Down

0 comments on commit 73833dc

Please sign in to comment.