mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 07:21:28 +00:00
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:
commit
7e44dc7ba3
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
const logger = require('logger-sharelatex')
|
|
||||||
const Metrics = require('metrics-sharelatex')
|
const Metrics = require('metrics-sharelatex')
|
||||||
|
Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore')
|
||||||
|
|
||||||
logger.initialize('filestore')
|
const logger = require('logger-sharelatex')
|
||||||
Metrics.initialize('filestore')
|
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')
|
||||||
|
|
Loading…
Reference in a new issue