diff --git a/libraries/metrics/metrics.coffee b/libraries/metrics/metrics.coffee index fc528b875d..963c471294 100644 --- a/libraries/metrics/metrics.coffee +++ b/libraries/metrics/metrics.coffee @@ -18,7 +18,7 @@ module.exports = Metrics = initialize: (_name) -> appname = _name collectDefaultMetrics({ timeout: 5000, prefix: Metrics.buildPromKey()}) - + logger = require("logger-sharelatex") logger.log("ENABLE_TRACE_AGENT set to #{process.env['ENABLE_TRACE_AGENT']}") @@ -42,8 +42,8 @@ module.exports = Metrics = } }) - logger.log("ENABLE_PROFILER_AGENT set to #{process.env['ENABLE_PROFILER_AGENT']}") - if process.env['ENABLE_PROFILER_AGENT'] == "true" + logger.log("ENABLE_PROFILE_AGENT set to #{process.env['ENABLE_PROFILE_AGENT']}") + if process.env['ENABLE_PROFILE_AGENT'] == "true" logger.log("starting google profile agent") profiler = require('@google-cloud/profiler') profiler.start({