enable sentry for docupdater

This commit is contained in:
Brian Gough 2017-02-14 14:34:28 +00:00
parent e0531d0272
commit 8d1aa56689

View file

@ -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)