remove app.configure

This commit is contained in:
Henry Oswald 2018-05-21 09:49:32 +01:00
parent d9eac8dd8b
commit ac990f2aba

View file

@ -16,16 +16,7 @@ Metrics.open_sockets.monitor(logger)
Metrics.event_loop?.monitor(logger) Metrics.event_loop?.monitor(logger)
Metrics.memory.monitor(logger) Metrics.memory.monitor(logger)
app.configure -> app.use Metrics.http.monitor(logger)
app.use Metrics.http.monitor(logger)
app.configure 'development', ->
console.log "Development Enviroment"
app.use express.errorHandler({ dumpExceptions: true, showStack: true })
app.configure 'production', ->
console.log "Production Enviroment"
app.use express.errorHandler()
Metrics.inc "startup" Metrics.inc "startup"