diff --git a/services/document-updater/app.coffee b/services/document-updater/app.coffee index 9026f653cb..9ed6c7e7b7 100644 --- a/services/document-updater/app.coffee +++ b/services/document-updater/app.coffee @@ -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) \ No newline at end of file + process.on signal, shutdownCleanly(signal)