mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use ENABLE_PROFILE_AGENT
This commit is contained in:
parent
db4ae84bda
commit
287effb139
1 changed files with 3 additions and 3 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue