From ac990f2aba8761f0227a1357d343789b4f461950 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 21 May 2018 09:49:32 +0100 Subject: [PATCH] remove app.configure --- services/filestore/app.coffee | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/services/filestore/app.coffee b/services/filestore/app.coffee index a6d6d11119..f7ef31e687 100644 --- a/services/filestore/app.coffee +++ b/services/filestore/app.coffee @@ -16,16 +16,7 @@ Metrics.open_sockets.monitor(logger) Metrics.event_loop?.monitor(logger) Metrics.memory.monitor(logger) -app.configure -> - 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() +app.use Metrics.http.monitor(logger) Metrics.inc "startup"