Merge pull request #128 from overleaf/spd-app-name-env

Use METRICS_APP_NAME env var to initialise metrics, if present
This commit is contained in:
Simon Detheridge 2020-07-23 14:13:16 +01:00 committed by GitHub
commit 7e44dc7ba3

View file

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