Initialise metrics before logger

This commit is contained in:
Simon Detheridge 2020-07-23 13:35:52 +01:00
parent 89fc640ec4
commit cb86ee8c10

View file

@ -1,9 +1,9 @@
const logger = require('logger-sharelatex')
logger.initialize(process.env.METRICS_APP_NAME || 'filestore')
const Metrics = require('metrics-sharelatex') const Metrics = require('metrics-sharelatex')
Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore') Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore')
const logger = require('logger-sharelatex')
logger.initialize(process.env.METRICS_APP_NAME || 'filestore')
const settings = require('settings-sharelatex') const settings = require('settings-sharelatex')
const express = require('express') const express = require('express')
const bodyParser = require('body-parser') const bodyParser = require('body-parser')