mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use METRICS_APP_NAME env var to initialise metrics, if present
This commit is contained in:
parent
988cb1174b
commit
89fc640ec4
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
const logger = require('logger-sharelatex')
|
||||
const Metrics = require('metrics-sharelatex')
|
||||
logger.initialize(process.env.METRICS_APP_NAME || 'filestore')
|
||||
|
||||
logger.initialize('filestore')
|
||||
Metrics.initialize('filestore')
|
||||
const Metrics = require('metrics-sharelatex')
|
||||
Metrics.initialize(process.env.METRICS_APP_NAME || 'filestore')
|
||||
|
||||
const settings = require('settings-sharelatex')
|
||||
const express = require('express')
|
||||
|
|
Loading…
Reference in a new issue