mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 19:42:53 +00:00
enable sentry for docupdater
This commit is contained in:
parent
e0531d0272
commit
8d1aa56689
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,9 @@ http = require("http")
|
|||
Settings = require('settings-sharelatex')
|
||||
logger = require('logger-sharelatex')
|
||||
logger.initialize("documentupdater")
|
||||
if Settings.sentry?.dsn?
|
||||
logger.initializeErrorReporting(Settings.sentry.dsn)
|
||||
|
||||
RedisManager = require('./app/js/RedisManager')
|
||||
DispatchManager = require('./app/js/DispatchManager')
|
||||
Keys = require('./app/js/RedisKeyBuilder')
|
||||
|
@ -99,4 +102,4 @@ app.listen port, host, ->
|
|||
logger.info "Document-updater starting up, listening on #{host}:#{port}"
|
||||
|
||||
for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT']
|
||||
process.on signal, shutdownCleanly(signal)
|
||||
process.on signal, shutdownCleanly(signal)
|
||||
|
|
Loading…
Reference in a new issue